ModelTermCollection.Expand Method

Expands the model term into a term that contains only primitive terms.

Definition

Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
C#
public override ModelTerm Expand(
	bool expandCategorical,
	bool allowRankDeficientEncoding = false
)

Parameters

expandCategorical  Boolean
If true, categorical variables are expanded into the constant term and the rank-deficient part.
allowRankDeficientEncoding  Boolean  (Optional)
Specifies whether categorical terms should be expanded into a union of rank deficient encodings.

Return Value

ModelTerm
If the term is already primitive, the same object is returned.

See Also