If all values are available, it is more accurate to use {@link #evaluate(double[])} rather than adding values one at a timeusing this method and then executing {@link #getResult}, since evaluate
leverages the fact that is has the full list of values together to execute a two-pass algorithm. See {@link Variance}.
Note also that when {@link #Variance(SecondMoment)} is used tocreate a Variance, this method does nothing. In that case, the SecondMoment should be incremented directly.
|
|
|
|
|
|