ModelTerm Class

Represents a term in a model specification.

Definition

Namespace: Extreme.DataAnalysis.Models
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
[SerializableAttribute]
public abstract class ModelTerm : IComparable<ModelTerm>, 
	IEquatable<ModelTerm>
Inheritance
Object  →  ModelTerm
Derived
Implements
IComparable<ModelTerm>, IEquatable<ModelTerm>

Remarks

Use the ModelTerm's static methods to construct model terms as part of a model specification.

Constructors

ModelTerm Constructs a new model term.

Properties

Children Returns a list of child terms referenced by this term.
ColumnCount Returns the number of numerical columns the term maps to.
Columns Enumerates the numerical columns the term maps to.
IsBound Gets whether all the variables in the term are bound to a column in a data frame.
IsReducible Gets whether the term can be reduced to a derived term or set of terms.
Kind Returns the kind of term.

Methods

Bind Returns a new model term whose variables are bound to the specified data frame.
Categorical Returns a categorical term with the specified key, category index, and encoding scheme.
CompareTo Compares this term to another one.
Difference Creates a model term that represents the difference between two terms.
Equals(ModelTerm) Returns whether one model term equals another.
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Expand Expands the model term into a term that contains only primitive terms.
ExpandToCategorical Expands the term into a collection of primitive numerical terms.
ExpandToNumerical Expands the term into a collection of primitive numerical terms.
Expression<U> Returns a model term based on an expression that uses the specified variables.
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Interaction(ModelTerm[]) Creates an interaction between multiple terms.
Interaction(ModelTerm, ModelTerm) Creates an interaction between two terms.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Model Creates a model term that represents the difference between two terms.
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.
Polynomial(ModelTerm, Int32) Creates a model term that represents a polynomial in the specified term.
Polynomial(String, Int32) Constructs a term corresponding to a polynomial.
Product Creates a model term that represents the complete interaction between two terms.
ToStringReturns a string that represents the current object.
(Inherited from Object)
Union Creates a union of multiple terms.
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.
Variables(IList<String>, Boolean) Returns a collection of model terms for the columns with the specified keys.
Variables(IDataFrame, String[], Boolean) Returns a collection of model terms for the columns with the specified keys in a data frame.

Fields

Constant Represents a constant term or intercept.
DefaultDependentPrefix Gets or sets the prefix to use for generating names of dependent variable(s) when no name was provided.
DefaultIndependentPrefix Gets or sets the prefix to use for generating names of independent variable(s) when no name was provided.
DefaultInterceptName Gets or sets the default name for the parameter corresponding to the intercept (constant term).
DefaultWeightName Gets or sets the name to use for the weight variable when no name was provided.
NoConstant Represents a term that indicates the constant term or intercept should be excluded.

See Also