ModelTerm.Numerical Method

Definition

Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.9.0

Overload List

Numerical(String) Adds a numerical term with the specified key.
Numerical(IIndex, Boolean) Returns a collection of model terms for the columns with the specified keys in an index.
Numerical(Int32, String, Boolean, Int32) Returns a collection of numerical terms with keys generated from the specified prefix.

Numerical(String)

Adds a numerical term with the specified key.
C#
public static ModelTerm Numerical(
	string key
)

Parameters

key  String
The key of the numerical column.

Return Value

ModelTerm

Numerical(IIndex, Boolean)

Returns a collection of model terms for the columns with the specified keys in an index.
C#
public static ModelTermCollection Numerical(
	IIndex index,
	bool noIntercept = true
)

Parameters

index  IIndex
The index that contains the column keys.
noIntercept  Boolean  (Optional)
If true, omits the constant term.

Return Value

ModelTermCollection
A collection of numerical terms with keys in index.

Numerical(Int32, String, Boolean, Int32)

Returns a collection of numerical terms with keys generated from the specified prefix.
C#
public static ModelTermCollection Numerical(
	int count,
	string prefix,
	bool noIntercept = true,
	int startIndex = -1
)

Parameters

count  Int32
The number of terms in the collection.
prefix  String
The prefix to use when generating keys.
noIntercept  Boolean  (Optional)
If true, omits the constant term. This parameter is optional. The default is true.
startIndex  Int32  (Optional)
Optional. The start index for the terms. The default is 1 if noIntercept is true, and 0 otherwise.

Return Value

ModelTermCollection
A collection of numerical terms with the specified keys.

See Also