corr

From DavinciWiki
Jump to: navigation, search


Description

Computes the Correlation 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: corr(obj = VAL [, axis = {x/y/z}] [, ignore = VAL])

The corr() function computes the correlation 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> b=corr(a,x)
 200x200x1 array of float, bsq format [160,000 bytes]

 dv> a2=identity(100)
 100x100x1 array of float, bsq format [40,000 bytes]

 dv> b2=corr(a2,x)
 100x100x1 array of float, bsq format [40,000 bytes]

Images

corrpic1.png corrpic2.png corrpic3.png corrpic4.png

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