PrincipalComponentAnalysis Constructor

Definition

Namespace: Numerics.NET.Statistics.Multivariate
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

PrincipalComponentAnalysis(IDataFrame)

Constructs a new PrincipalComponentAnalysis object.
C#
public PrincipalComponentAnalysis(
	IDataFrame dataFrame
)

Parameters

dataFrame  IDataFrame
A data frame containing the data for the analysis.

Exceptions

ArgumentNullException

dataFrame is null.

PrincipalComponentAnalysis(Matrix<Double>)

Constructs a new PrincipalComponentAnalysis object.
C#
public PrincipalComponentAnalysis(
	Matrix<double> data
)

Parameters

data  Matrix<Double>
A real Matrix<T> whose rows contain the observations for the analysis.

Exceptions

PrincipalComponentAnalysis(Vector<Double>[])

Constructs a new PrincipalComponentAnalysis object.
C#
public PrincipalComponentAnalysis(
	Vector<double>[] variables
)

Parameters

variables  Vector<Double>[]
An array of Vector<T> objects that contain the variables.

Exceptions

ArgumentNullException

variables is null.

PrincipalComponentAnalysis(IDataFrame, String)

Constructs a new PrincipalComponentAnalysis object.
C#
public PrincipalComponentAnalysis(
	IDataFrame dataFrame,
	string formula
)

Parameters

dataFrame  IDataFrame
A data frame containing the data for the analysis.
formula  String
A formula that specifies the features in the model.

Exceptions

ArgumentNullException

dataFrame is null.

-or-

formula is null.

FormatException

The formula is not in the correct format.

PrincipalComponentAnalysis(IDataFrame, String[])

Constructs a new PrincipalComponentAnalysis object.
C#
public PrincipalComponentAnalysis(
	IDataFrame dataFrame,
	string[]? variableNames
)

Parameters

dataFrame  IDataFrame
A data frame containing the data for the analysis.
variableNames  String[]
An array containing the names of the variables.

Exceptions

ArgumentNullException

dataFrame is null.

-or-

variableNames is null.

See Also