libICEpost.src.base.Filter
@author: <N. Surname> <e-mail> Last update: DD/MM/YYYY
Fliters for data pre-processing
- Content of the package:
- Filter (class)
Base class
- Resample (class)
Resampling with constant discretization
- LowPass (class)
Low-pass filter
Submodules
Classes
Class for filtering raw data |
|
Resampling with constant delta x |
|
Apply low-pass filter |
|
Apply low-pass filter and resampling |
|
User defined filter from body of "__call__(x,y)" method |
Package Contents
- class libICEpost.src.base.Filter.Filter[source]
Bases:
libICEpost.src.base.BaseClass.BaseClassClass for filtering raw data
Attributes:
- class libICEpost.src.base.Filter.Resample(delta: float)[source]
Bases:
libICEpost.src.base.Filter.Filter.FilterResampling with constant delta x
- delta
float Resampling interval
- property delta: float
The discretization spacing
- Returns:
float
- classmethod fromDictionary(dictionary)[source]
Create from dictionary.
- {
delta (float): the spacing
}
- _delta
- class libICEpost.src.base.Filter.LowPass(cutoff: float, *, order=5)[source]
Bases:
libICEpost.src.base.Filter.Filter.FilterApply low-pass filter
- cutoff
float Cutoff frequency
- order
int Order of the filter
- property cutoff: float
cutoff frequency
- Returns:
float
- property order: int
Order of the filter
- Returns:
int
- classmethod fromDictionary(dictionary)[source]
Create from dictionary.
- {
cutoff (float): cutoff frequency order (int): order of the filter
}
- _cutoff
- _order = 5
- __call__(xp: list[float], yp: list[float]) tuple[list[float], list[float]][source]
Filter an array of x,y data with low-pass filter
- class libICEpost.src.base.Filter.LowPassAndResample(*, delta: float, cutoff: float, order=5)[source]
Bases:
libICEpost.src.base.Filter.LowPass.LowPass,libICEpost.src.base.Filter.Resample.ResampleApply low-pass filter and resampling
- cutoff
Cutoff frequency
- Type:
float
- order
Order of the filter
- Type:
int
- delta
Resampling time-step
- Type:
float
- classmethod fromDictionary(dictionary)[source]
Create from dictionary.
- {
delta (float): Resampling time-step cutoff (float): cutoff frequency order (int): order of the filter
}
- class libICEpost.src.base.Filter.UserDefinedFilter(function: types.FunctionType)[source]
Bases:
libICEpost.src.base.Filter.Filter.FilterUser defined filter from body of “__call__(x,y)” method
Attributes:
- property code
the code of the __call__(x,y) method
- Returns:
str