This document is archived and information here might be outdated.  Recommended version.

IMultivariateOp.PrincipalComponents Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > IM > IMultivariateOp Interface > IMultivariateOp.PrincipalComponents Method
ArcGIS Developer Help

IMultivariateOp.PrincipalComponents Method

Performs principal components analysis on a raster band collection.

[Visual Basic .NET]
Public Function PrincipalComponents ( _
    ByVal rasterBands As IGeoDataset, _
    ByVal dataFile As String, _
    [ByVal numberComponents As Object] _
) As IGeoDataset
public IGeoDataset PrincipalComponents (
    IGeoDataset rasterBands,
    string dataFile,
    object numberComponents
HRESULT PrincipalComponents(
  IGeoDataset* rasterBands,
  BSTR dataFile,
  VARIANT numberComponents
rasterBands [in]

rasterBands is a parameter of type IGeoDataset* dataFile [in]
dataFile is a parameter of type BSTR numberComponents [in, optional]
numberComponents is a parameter of type VARIANT
To indicate this parameter is undefined pass in a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Spatial Analyst Extension.



name(s) of the input rasterband to calculate statistics. The Rasterbands must have common intersecton.


name of the output ASCII fille where the principal components parameters will be stored. 


number of principle components. The default is equal to the number of input rasterbands


See Also

IMultivariateOp Interface