Learn R Programming

hermiter (version 2.3.1)

standardizeInputs: Standardizes the observation x and updates the online moment inputs

Description

Standardizes the observation x and updates the online moment inputs

Usage

standardizeInputs(x, n_obs, current_mean, current_var)

Value

A numeric vector. The first element is the updated mean. The second element is the updated variance times n_obs. The third element is the updated, standardized value of x.

Arguments

x

A numeric value.

n_obs

A numeric value. The number of observations.

current_mean

A numeric value.

current_var

A numeric value.

Author

Michael Stephanou <michael.stephanou@gmail.com>