FactorAnalysis Constructor

Definition

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

Overload List

FactorAnalysis(Matrix<Double>) Constructs a new factor analysis object.
FactorAnalysis(Vector<Double>[]) Constructs a new factor analysis object.
FactorAnalysis(IDataFrame, String) Constructs a new FactorAnalysis.
FactorAnalysis(IDataFrame, String[]) Constructs a new FactorAnalysis.
FactorAnalysis(SymmetricMatrix<Double>, FactorMethod) Constructs a new factor analysis object.

FactorAnalysis(Matrix<Double>)

Constructs a new factor analysis object.
C#
public FactorAnalysis(
	Matrix<double> data
)

Parameters

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

Exceptions

FactorAnalysis(Vector<Double>[])

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

Parameters

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

Exceptions

ArgumentNullException

variables is null.

FactorAnalysis(IDataFrame, String)

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

Parameters

dataFrame  IDataFrame
A IDataFrame 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.

FactorAnalysis(IDataFrame, String[])

Constructs a new FactorAnalysis.
C#
public FactorAnalysis(
	IDataFrame dataFrame,
	string[]? variableNames = null
)

Parameters

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

Exceptions

ArgumentNullException

dataFrame is null.

-or-

variableNames is null.

FactorAnalysis(SymmetricMatrix<Double>, FactorMethod)

Constructs a new factor analysis object.
C#
public FactorAnalysis(
	SymmetricMatrix<double> data,
	FactorMethod method
)

Parameters

data  SymmetricMatrix<Double>
A real Matrix<T> whose rows contain the observations for the analysis.
method  FactorMethod
Indicates whether to treat data as a correlation or a covariance matrix.

Exceptions

See Also