changeset 13795:50ceb5c51271 stable

var.m: Fix bug in docstring referring to std (Bug #34729). * var.m: Fix typo referring to function "std" where it should be "var".
author Rik <octave@nomad.inbox5.com>
date Wed, 02 Nov 2011 18:21:27 -0700
parents eac43686d791
children 5289d7c2460d
files scripts/statistics/base/var.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/statistics/base/var.m	Mon Oct 24 16:14:14 2011 -0400
+++ b/scripts/statistics/base/var.m	Wed Nov 02 18:21:27 2011 -0700
@@ -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
 ##