Click or drag to resize

ChemometricCommandsPrincipalComponentAnalysis Method

Makes a PCA (a principal component analysis) of the table or the selected columns / rows and stores the results in a newly created table.

Namespace: Altaxo.Worksheet.Commands.Analysis
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static string? PrincipalComponentAnalysis(
	AltaxoDocument mainDocument,
	DataTable srctable,
	IAscendingIntegerCollection? selectedColumns,
	IAscendingIntegerCollection? selectedRows,
	bool bHorizontalOrientedSpectrum,
	int maxNumberOfFactors
)

Parameters

mainDocument  AltaxoDocument
The main document of the application.
srctable  DataTable
The table where the data come from.
selectedColumns  IAscendingIntegerCollection
The selected columns.
selectedRows  IAscendingIntegerCollection
The selected rows.
bHorizontalOrientedSpectrum  Boolean
True if a spectrum is a single row, False if a spectrum is a single column.
maxNumberOfFactors  Int32
The maximum number of factors to calculate.

Return Value

String
Null if successfull; otherwise, an error message.
See Also