Model Term.Numerical Method
Definition
Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Numerical( | Adds a numerical term with the specified key. |
Numerical( | Returns a collection of model terms for the columns with the specified keys in an index. |
Numerical( | Returns a collection of numerical terms with keys generated from the specified prefix. |
Numerical(String)
Adds a numerical term with the specified key.
public static ModelTerm Numerical(
string key
)
Parameters
- key String
- The key of the numerical column.
Return Value
ModelTermNumerical(IIndex, Boolean)
Returns a collection of model terms for the columns with the specified keys
in an index.
public static ModelTermCollection Numerical(
IIndex index,
bool noIntercept = true
)
Parameters
- index IIndex
- The index that contains the column keys.
- noIntercept Boolean (Optional)
- Indicates whether a constant term should be included.
Return Value
ModelTermCollectionA 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.
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)
- Indicates whether a constant term should be included. This parameter is optional. The default value is false.
- startIndex Int32 (Optional)
- Optional. The start index for the terms. The default is 1 if noIntercept is true, and 0 otherwise.
Return Value
ModelTermCollectionA collection of numerical terms with the specified keys.