Class SecondOrder
second-order filter
Inherited Members
Namespace: TimeSeriesAnalysis
Assembly: TimeSeriesAnalysis.dll
Syntax
public class SecondOrder
Constructors
| Edit this page View SourceSecondOrder(double, double)
Constructor
Declaration
public SecondOrder(double TimeBase_s, double nanValue = -9999)
Parameters
Type | Name | Description |
---|---|---|
double | TimeBase_s | The time base, the time interval between each time step of the dataset, in seconds |
double | nanValue | value that is to be treated as NaN and ignored |
Methods
| Edit this page View SourceFilter(double, double, double, bool)
Adds a single data point to the filter
Declaration
public double Filter(double signal, double FilterTc_s, double DampingZeta = 0, bool doReset = false)
Parameters
Type | Name | Description |
---|---|---|
double | signal | data point |
double | FilterTc_s | filter time constant in seconds |
double | DampingZeta | filter time constant in seconds(also reffered to as zeta ) |
bool | doReset | usually false, setting to true causes filter to reset to the value of signal |
Returns
Type | Description |
---|---|
double |
Filter(double[], double, int, List<int>)
Filter an entire time-series in one command
Declaration
public double[] Filter(double[] signal, double FilterTc_s, int order = 1, List<int> indicesToIgnore = null)
Parameters
Type | Name | Description |
---|---|---|
double[] | signal | the vector of the entire time-series to be filtered |
double | FilterTc_s | filter time constant |
int | order | filter order, either 1 or 2 |
List<int> | indicesToIgnore | for these indices the of the signal, the filter should just "freeze" the value(can be null) |
Returns
Type | Description |
---|---|
double[] | a vector of the filtered time-series |