Constructs a FloatPCA instance from the given data, optionally centering and scaling the data before analysis takes place.

Namespace:  CenterSpace.NMath.Stats
Assembly:  NMathStats (in NMathStats.dll) Version: 3.4.0.0

Syntax

C#
public FloatPCA(
	FloatMatrix data,
	bool center,
	bool scale
)
Visual Basic (Declaration)
Public Sub New ( _
	data As FloatMatrix, _
	center As Boolean, _
	scale As Boolean _
)
Visual C++
public:
FloatPCA(
	FloatMatrix^ data, 
	bool center, 
	bool scale
)

Parameters

data
Type: CenterSpace.NMath.Core..::.FloatMatrix
A matrix containing the data. Each column represents a variable; each row an observation.
center
Type: System..::.Boolean
A boolean value indicating whether the variables should be shifted to be zero-centered before analysis takes place.
scale
Type: System..::.Boolean
A boolean value indicating indicating whether the variables should be scaled to have unit variance before analysis takes place.

See Also