screamer.js
    Preparing search index...

    Function BayesianRegression

    • Online Bayesian linear regression with a forgetting factor: the current slope and intercept, and a one-step-ahead predictive mean and standard deviation.

      Parameters

      Returns ScreamerOp

    • Online Bayesian linear regression with a forgetting factor: the current slope and intercept, and a one-step-ahead predictive mean and standard deviation.

      Parameters

      • Optionalcom: number | null

        Center of mass c, giving alpha = 1 / (1 + c). Must be positive. Give exactly one of com, span, halflife and alpha.

      • Optionalspan: number | null

        Span s in samples, giving alpha = 2 / (s + 1). Must be greater than 1. Give exactly one of com, span, halflife and alpha.

      • Optionalhalflife: number | null

        Half-life h in samples, giving alpha = 1 - exp(-ln(2) / h). Must be positive. Give exactly one of com, span, halflife and alpha.

      • Optionalalpha: number | null

        Smoothing factor, with 0 < alpha < 1; a larger alpha gives recent samples more weight. Give exactly one of com, span, halflife and alpha.

      • OptionalpriorPrecision: number

        Prior precision of the intercept and slope, which have prior mean 0. Larger values pull the coefficients toward zero more strongly. Must be positive.

      • OptionalpriorSigma: number

        Prior guess of the noise standard deviation: the prior mean of the noise variance is prior_sigma^2. Must be positive.

      Returns ScreamerOp