standardizeInputsEW | R Documentation |
The online moments are updated via exponential weighting.
standardizeInputsEW(x, n_obs, lambda, current_mean, current_var)
x |
A numeric value. |
n_obs |
A numeric value. The number of observations. |
lambda |
A numeric value. |
current_mean |
A numeric value. |
current_var |
A numeric 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.
Michael Stephanou <michael.stephanou@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.