comparison scripts/statistics/base/kendall.m @ 10793:be55736a0783

Grammarcheck the documentation from m-files.
author Rik <octave@nomad.inbox5.com>
date Sun, 18 Jul 2010 20:35:16 -0700
parents f0c3d3fc4903
children 693e22af08ae
comparison
equal deleted inserted replaced
10792:91342260063e 10793:be55736a0783
28 ## @code{kendall (@var{x})} is equivalent to @code{kendall (@var{x}, 28 ## @code{kendall (@var{x})} is equivalent to @code{kendall (@var{x},
29 ## @var{x})}. 29 ## @var{x})}.
30 ## 30 ##
31 ## For two data vectors @var{x}, @var{y} of common length @var{n}, 31 ## For two data vectors @var{x}, @var{y} of common length @var{n},
32 ## Kendall's @var{tau} is the correlation of the signs of all rank 32 ## Kendall's @var{tau} is the correlation of the signs of all rank
33 ## differences of @var{x} and @var{y}; i.e., if both @var{x} and 33 ## differences of @var{x} and @var{y}; i.e., if both @var{x} and
34 ## @var{y} have distinct entries, then 34 ## @var{y} have distinct entries, then
35 ## 35 ##
36 ## @tex 36 ## @tex
37 ## $$ \tau = {1 \over n(n-1)} \sum_{i,j} {\rm sign}(q_i-q_j) {\rm sign}(r_i-r_j) $$ 37 ## $$ \tau = {1 \over n(n-1)} \sum_{i,j} {\rm sign}(q_i-q_j) {\rm sign}(r_i-r_j) $$
38 ## @end tex 38 ## @end tex