screamer.js
    Preparing search index...

    Function KalmanFilter

    • Scalar 1-D Kalman filter for a noisy random-walk model.

      Parameters

      • options: KalmanFilterOptions

        The settings by name, each one optional where the positional form's is.

      Returns ScreamerOp

    • Scalar 1-D Kalman filter for a noisy random-walk model.

      Parameters

      • OptionalprocessVar: number

        Variance of the random-walk innovation. Larger values make the filter follow new measurements more closely, with a noisier output.

      • OptionalobservationVar: number

        Variance of the measurement noise. Must be positive.

      • OptionalinitialState: number

        Starting state estimate x_0, used before the first observation.

      • OptionalinitialVariance: number

        Variance P_0 of the starting state. A large value such as 1e9 makes the filter forget the initial state quickly. inf is a diffuse prior, so the first observation sets the state, with the observation variance.

      • Optionalhuber: number

        Outlier threshold, in standard deviations of the prediction error. An observation further out than this updates the state with a weight that falls with its distance, so it cannot pull the state far. 2 to 3 is typical. inf, the default, is the ordinary Kalman update. Must be positive.

      Returns ScreamerOp