Model Term.Variable Method
Definition
Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Variable( | Returns a model term with the specified key. |
Variable( | Returns a model term for the column with the specified key in the data source. |
Variable(String)
Returns a model term with the specified key.
Variable(IDataFrame, String)
Returns a model term for the column with the specified key in the data source.
public static ModelTerm Variable(
IDataFrame source,
string key
)
Parameters
- source IDataFrame
- The data frame that contains the variables.
- key String
- The
Return Value
ModelTermIf the column is a categorical vector, or when the element type of the column is not numerical, a categorical model term; otherwise a numerical term.