Creates a factor from the given column.

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

Syntax

C#
public Factor GetFactor(
	string colName,
	Object[] levels
)
Visual Basic (Declaration)
Public Function GetFactor ( _
	colName As String, _
	levels As Object() _
) As Factor
Visual C++
public:
Factor^ GetFactor(
	String^ colName, 
	array<Object^>^ levels
)

Parameters

colName
Type: System..::.String
A column name.
levels
Type: array< System..::.Object >[]()[]
An array of factor levels.

Return Value

A factor with the given levels.

Exceptions

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentException Thrown if the given column contains a value that is not in levels.

See Also