Mercurial > hg > octave-nkf
comparison scripts/statistics/base/cov.m @ 5428:2a16423e4aa0
[project @ 2005-08-23 18:38:27 by jwe]
author | jwe |
---|---|
date | Tue, 23 Aug 2005 18:38:28 +0000 |
parents | 4c8a2e4e0717 |
children | 34f96dd5441b |
comparison
equal
deleted
inserted
replaced
5427:a92afe70fb8d | 5428:2a16423e4aa0 |
---|---|
24 ## @code{cov (@var{x}, @var{y})} is the covariance between the @var{i}-th | 24 ## @code{cov (@var{x}, @var{y})} is the covariance between the @var{i}-th |
25 ## variable in @var{x} and the @var{j}-th variable in @var{y}. If called | 25 ## variable in @var{x} and the @var{j}-th variable in @var{y}. If called |
26 ## with one argument, compute @code{cov (@var{x}, @var{x})}. | 26 ## with one argument, compute @code{cov (@var{x}, @var{x})}. |
27 ## @end deftypefn | 27 ## @end deftypefn |
28 | 28 |
29 ## Author: KH <Kurt.Hornik@ci.tuwien.ac.at> | 29 ## Author: KH <Kurt.Hornik@wu-wien.ac.at> |
30 ## Description: Compute covariances | 30 ## Description: Compute covariances |
31 | 31 |
32 function c = cov (x, y) | 32 function c = cov (x, y) |
33 | 33 |
34 if (nargin < 1 || nargin > 2) | 34 if (nargin < 1 || nargin > 2) |