Model Term Class
Represents a term in a model specification.
Definition
Namespace: Numerics.NET.DataAnalysis.Models
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
[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
Model | Constructs a new model term. |
Properties
Children | Returns a list of child terms referenced by this term. |
Column | 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. |
Compare | Compares this term to another one. |
Difference | Creates a model term that represents the difference between two terms. |
Equals( | Returns whether one model term equals another. |
Equals( | 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. |
Expand | Expands the term into a collection of primitive numerical terms. |
Expand | 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. |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
Get | Serves as the default hash function. (Inherited from Object) |
Get | Gets the Type of the current instance. (Inherited from Object) |
Interaction(ModelTerm[]) | Creates an interaction between multiple terms. |
Interaction( | Creates an interaction between two terms. |
Memberwise | Creates a shallow copy of the current Object. (Inherited from Object) |
Model | Creates a model term that represents the difference between two terms. |
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. |
Polynomial( | Creates a model term that represents a polynomial in the specified term. |
Polynomial( | Constructs a term corresponding to a polynomial. |
Product | Creates a model term that represents the complete interaction between two terms. |
ToString | Returns a string that represents the current object. (Inherited from Object) |
Union | Creates a union of multiple terms. |
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. |
Variables( | Returns a collection of model terms for the columns with the specified keys. |
Variables( | 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. |
Default | Gets or sets the prefix to use for generating names of dependent variable(s) when no name was provided. |
Default | Gets or sets the prefix to use for generating names of independent variable(s) when no name was provided. |
Default | Gets or sets the default name for the parameter corresponding to the intercept (constant term). |
Default | 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. |