Search Results for

    Show / Hide Table of Contents

    Class SecondOrder

    second-order filter

    Inheritance
    object
    SecondOrder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: TimeSeriesAnalysis
    Assembly: TimeSeriesAnalysis.dll
    Syntax
    public class SecondOrder

    Constructors

    | Edit this page View Source

    SecondOrder(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 Source

    Filter(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
    | Edit this page View Source

    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

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX