covar

From DavinciWiki
Jump to: navigation, search


Description

Computes the Covariance matrix of the input data.

Arguments and Return Values

Arguments: A numeric array and an axis

Return Value: A float array of identical size to the input array

Usage

Syntax: covar(obj = VAL [, axis = {x/y/z}])

The covar() function computes the covariance matrix for the vectors specified in the 'obj' cube.

The 'axis' parameter specifies the dimension along with the vectors are laid out. Say, the input 'obj' is an [m x n x w] matrix and the 'axis' has been specified as 'z' then:

'w' is the dimension of the a single input vector, and there are 'm x n' of them in the image cube.

The default value for this parameter is 'z'.

Examples

 dv> a
 200x200x1 array of byte, bip format [40,000 bytes]

 dv> c=covar(a,x)
 200x200x1 array of float, bsq format [160,000 bytes]


DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 03-23-2006

Personal tools