pca

From DavinciWiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
{{DavinciWiki_Function|
 
{{DavinciWiki_Function|
 
+
Principal Component Analysis
 +
 +
Compute the principal components, eigen values and eigen vectors of a numeric array
 
|
 
|
Arguments:  
+
Arguments: A numeric array and ignore value
 
   
 
   
Return Value:  
+
Return Value: A structure containing the eigen value and vectors and the rotated data
 
|
 
|
[[Syntax]]:  
+
[[Syntax]]: pca(image [, ignore])
 +
 +
'image' - A numeric array
 +
 +
'ignore' - An optional ignore value for matrix calculations
 
|
 
|
 +
dv> a
 +
600x600x3 array of byte, bip format [1,080,000 bytes]
 +
 +
dv> b=pca(a)
 +
struct, 2 elements
 +
    e: 4x3x1 array of float, bsq format [48 bytes]
 +
    data: 600x600x3 array of double, bip format [8,640,000 bytes]
 
|
 
|
 +
Original Image
 +
 +
[[Image:unfiltered.png|250px]]
 +
 +
Three principal components
 +
 +
[[Image:comp1.png|250px]] [[Image:comp2.png|250px]] [[Image:comp3.png|250px]]
 
|
 
|
 +
*[[mxm]]
 +
*[[eigen]]
 +
*[[covar]]
 
|
 
|
 +
*[[pca2]]
 
|
 
|
 +
[[Media:pca.dvrc|pca()]]
 
|
 
|
 
}}
 
}}
[[category:Scripts]]
 
 
[[category:Functions]]
 
[[category:Functions]]
 +
[[category:User Defined Functions]]
 
[[category:Matrix]]
 
[[category:Matrix]]

Revision as of 14:10, 28 March 2006


Description

Principal Component Analysis

Compute the principal components, eigen values and eigen vectors of a numeric array

Arguments and Return Values

Arguments: A numeric array and ignore value

Return Value: A structure containing the eigen value and vectors and the rotated data

Usage

Syntax: pca(image [, ignore])

'image' - A numeric array

'ignore' - An optional ignore value for matrix calculations

Examples

dv> a
600x600x3 array of byte, bip format [1,080,000 bytes]

dv> b=pca(a)
struct, 2 elements
    e: 4x3x1 array of float, bsq format [48 bytes]
    data: 600x600x3 array of double, bip format [8,640,000 bytes]

Images

Original Image

unfiltered.png

Three principal components

comp1.png comp2.png comp3.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

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

All other topics

  • See navigation on the left

Major Sub-Functions

Related Functions

Recent Library Changes

Created On: 02-15-2006
Modified On: 07-16-2012

Personal tools