Mercurial > octave-nkf
diff scripts/statistics/base/var.m @ 13836:519390f1b67f
maint: periodic merge of stable to default.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 06 Nov 2011 21:22:49 -0800 |
parents | 6b2f14af2360 50ceb5c51271 |
children | 72c96de7a403 |
line wrap: on
line diff
--- a/scripts/statistics/base/var.m Thu Oct 27 09:59:26 2011 -0700 +++ b/scripts/statistics/base/var.m Sun Nov 06 21:22:49 2011 -0800 @@ -23,7 +23,7 @@ ## Compute the variance of the elements of the vector @var{x}. ## @tex ## $$ -## {\rm std} (x) = \sigma^2 = {\sum_{i=1}^N (x_i - \bar{x})^2 \over N - 1} +## {\rm var} (x) = \sigma^2 = {\sum_{i=1}^N (x_i - \bar{x})^2 \over N - 1} ## $$ ## where $\bar{x}$ is the mean value of $x$. ## @end tex @@ -31,7 +31,7 @@ ## ## @example ## @group -## std (x) = 1/(N-1) SUM_i (x(i) - mean(x))^2 +## var (x) = 1/(N-1) SUM_i (x(i) - mean(x))^2 ## @end group ## @end example ##