Mercurial > octave
comparison scripts/statistics/base/cov.m @ 18207:48dafd739840 stable
cov.m: Document intentional Matlab incompatibility (bug #40751).
cov.m: Document intentional Matlab incompatibility (bug #40751).
author | Rik <rik@octave.org> |
---|---|
date | Fri, 03 Jan 2014 12:36:17 -0800 |
parents | d63878346099 |
children | 4197fc428c7d |
comparison
equal
deleted
inserted
replaced
18199:2fbfeacf43f4 | 18207:48dafd739840 |
---|---|
53 ## covariance [default] | 53 ## covariance [default] |
54 ## | 54 ## |
55 ## @item 1: | 55 ## @item 1: |
56 ## normalize with @math{N}, this provides the second moment around the mean | 56 ## normalize with @math{N}, this provides the second moment around the mean |
57 ## @end table | 57 ## @end table |
58 ## | |
59 ## @sc{matlab} compatibility: Octave always computes the covariance matrix. | |
60 ## For two inputs, however, @sc{matlab} will calculate | |
61 ## @code{cov (@var{x}(:), @var{y}(:))} whenever the number of elements in | |
62 ## @var{x} and @var{y} are equal. This will result in a scalar rather than | |
63 ## a matrix output. Code relying on this odd definition will need to be | |
64 ## changed when running in Octave. | |
58 ## @seealso{corr} | 65 ## @seealso{corr} |
59 ## @end deftypefn | 66 ## @end deftypefn |
60 | 67 |
61 ## Author: KH <Kurt.Hornik@wu-wien.ac.at> | 68 ## Author: KH <Kurt.Hornik@wu-wien.ac.at> |
62 ## Description: Compute covariances | 69 ## Description: Compute covariances |