ModelTermCollection Class

Represents a collection of terms in a model specification.

Definition

Namespace: Extreme.DataAnalysis.Models
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public sealed class ModelTermCollection : ModelTerm, 
	IList<ModelTerm>, ICollection<ModelTerm>, IEnumerable<ModelTerm>, 
	IEnumerable
Inheritance
Object  →  ModelTerm  →  ModelTermCollection
Implements
ICollection<ModelTerm>, IEnumerable<ModelTerm>, IList<ModelTerm>, IEnumerable

Remarks

Use the ModelTermCollection class to represent a term in a model specification that consists of the union of two or more terms. The most common use is as the right-hand side of a model specification.

Constructors

ModelTermCollection(Int32) Constructs a new model term collection with the specified capacity.
ModelTermCollection(IList<ModelTerm>, Boolean) Constructs a new collection from the specified terms.
ModelTermCollection(ModelTerm, Boolean) Constructs a new collection from a single term.

Properties

Children Returns a list of child terms referenced by this term.
(Overrides ModelTerm.Children)
ColumnCount Returns the number of numerical columns the term maps to.
(Inherited from ModelTerm)
Columns Enumerates the numerical columns the term maps to.
(Inherited from ModelTerm)
Count Gets the number of terms in the collection.
IsBound Gets whether all the variables in the term are bound to a column in a data frame.
(Overrides ModelTerm.IsBound)
IsReducible Gets whether the term can be reduced to a derived term or set of terms.
(Inherited from ModelTerm)
ItemGets or sets the element at the specified index.
Kind Returns the kind of term.
(Overrides ModelTerm.Kind)

Methods

Add Adds a model term to the collection.
AddExpression<U> Adds an expression term to the collection.
AddPolynomial Adds a new polynomial term to the collection.
AddRange Adds a sequence of model terms to the collection.
AddVariable Adds a categorical term to the collection.
Bind Returns a new model term whose variables are bound to the specified data frame.
(Inherited from ModelTerm)
CompareTo Compares this term to another one.
(Inherited from ModelTerm)
Contains Returns whether the collection contains the specified term.
Equals(ModelTerm) Returns whether one model term equals another.
(Inherited from ModelTerm)
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.
(Overrides ModelTerm.Expand(Boolean, Boolean))
ExpandToCategorical Expands the term into a collection of primitive numerical terms.
(Inherited from ModelTerm)
ExpandToNumerical Expands the term into a collection of primitive numerical terms.
(Inherited from ModelTerm)
GetEnumerator Returns an enumerator that iterates over the terms in the collection.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetIndex Returns the index of column names for the terms in the collection.
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Overrides Object.ToString())

Extension Methods

Group<ModelTerm> Returns a grouping by the unique elements in a list.
(Defined by Grouping)
Group<ModelTerm> Returns a grouping by the unique elements in a sequence.
(Defined by Grouping)
Group<ModelTerm> Returns a grouping by the unique elements in a list using the specified comparer to determine equality.
(Defined by Grouping)
Group<ModelTerm> Returns a grouping by the unique elements in a sequence using the specified comparer to determine equality.
(Defined by Grouping)
Sum<ModelTerm> Computes the sum of the sequence of values.
(Defined by ArrayMath)
Sum<ModelTerm, U> Computes the sum of the sequence of values that are obtained by invoking a transform function on each element of the input sequence.
(Defined by ArrayMath)

See Also