Mercurial > hg > octave-lyh
comparison scripts/statistics/base/corrcoef.m @ 9211:f0c3d3fc4903
Simplify Texinfo documentation in .m scripts by removing redundant @iftex calls
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Sun, 17 May 2009 14:39:39 -0700 |
parents | eb63fbe60fab |
children | 16f53d29049f |
comparison
equal
deleted
inserted
replaced
9210:a7a9eecc07b5 | 9211:f0c3d3fc4903 |
---|---|
24 ## If each row of @var{x} and @var{y} is an observation and each column is | 24 ## If each row of @var{x} and @var{y} is an observation and each column is |
25 ## a variable, the (@var{i}, @var{j})-th entry of | 25 ## a variable, the (@var{i}, @var{j})-th entry of |
26 ## @code{corrcoef (@var{x}, @var{y})} is the correlation between the | 26 ## @code{corrcoef (@var{x}, @var{y})} is the correlation between the |
27 ## @var{i}-th variable in @var{x} and the @var{j}-th variable in @var{y}. | 27 ## @var{i}-th variable in @var{x} and the @var{j}-th variable in @var{y}. |
28 ## | 28 ## |
29 ## @iftex | |
30 ## @tex | 29 ## @tex |
31 ## $$ | 30 ## $$ |
32 ## {\rm corrcoef}(x,y) = {{\rm cov}(x,y) \over {\rm std}(x) {\rm std}(y)} | 31 ## {\rm corrcoef}(x,y) = {{\rm cov}(x,y) \over {\rm std}(x) {\rm std}(y)} |
33 ## $$ | 32 ## $$ |
34 ## @end tex | 33 ## @end tex |
35 ## @end iftex | |
36 ## @ifnottex | 34 ## @ifnottex |
37 ## @example | 35 ## @example |
38 ## corrcoef(x,y) = cov(x,y)/(std(x)*std(y)) | 36 ## corrcoef(x,y) = cov(x,y)/(std(x)*std(y)) |
39 ## @end example | 37 ## @end example |
40 ## @end ifnottex | 38 ## @end ifnottex |