Extreme Optimization™: Complexity made simple.

Math and Statistics
Libraries for .NET

  • Home
  • Features
    • Math Library
    • Vector and Matrix Library
    • Statistics Library
    • Performance
    • Usability
  • Documentation
    • Introduction
    • Math Library User's Guide
    • Vector and Matrix Library User's Guide
    • Data Analysis Library User's Guide
    • Statistics Library User's Guide
    • Reference
  • Resources
    • Downloads
    • QuickStart Samples
    • Sample Applications
    • Frequently Asked Questions
    • Technical Support
  • Order
  • Company
    • About us
    • Testimonials
    • Customers
    • Press Releases
    • Careers
    • Partners
    • Contact us
Introduction
Deployment Guide
Nuget packages
Configuration
Using Parallelism
Expand Mathematics Library User's GuideMathematics Library User's Guide
Expand Vector and Matrix Library User's GuideVector and Matrix Library User's Guide
Expand Data Analysis Library User's GuideData Analysis Library User's Guide
Expand Statistics Library User's GuideStatistics Library User's Guide
Expand Data Access Library User's GuideData Access Library User's Guide
Expand ReferenceReference

Skip Navigation LinksHome»Documentation»Reference»Extreme.DataAnalysis.Models»ModelTerm Class

ModelTerm Class

Extreme Optimization Numerical Libraries for .NET Professional
Represents a term in a model specification.
Inheritance Hierarchy

SystemObject
  Extreme.DataAnalysis.ModelsModelTerm
    Extreme.DataAnalysis.ModelsModelTermCollection

Namespace:  Extreme.DataAnalysis.Models
Assembly:  Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
Syntax

C#
VB
C++
F#
Copy
[SerializableAttribute]
public abstract class ModelTerm : IComparable<ModelTerm>, 
	IEquatable<ModelTerm>
<SerializableAttribute>
Public MustInherit Class ModelTerm
	Implements IComparable(Of ModelTerm), IEquatable(Of ModelTerm)
[SerializableAttribute]
public ref class ModelTerm abstract : IComparable<ModelTerm^>, 
	IEquatable<ModelTerm^>
[<AbstractClassAttribute>]
[<SerializableAttribute>]
type ModelTerm =  
    class
        interface IComparable<ModelTerm>
        interface IEquatable<ModelTerm>
    end

The ModelTerm type exposes the following members.

Constructors

  NameDescription
Protected methodModelTerm
Constructs a new model term.
Top
Properties

  NameDescription
Public propertyChildren
Returns a list of child terms referenced by this term.
Public propertyColumnCount
Returns the number of numerical columns the term maps to.
Public propertyColumns
Enumerates the numerical columns the term maps to.
Public propertyIsBound
Gets whether all the variables in the term are bound to a column in a data frame.
Public propertyIsReducible
Gets whether the term can be reduced to a derived term or set of terms.
Public propertyKind
Returns the kind of term.
Top
Methods

  NameDescription
Public methodBind
Returns a new model term whose variables are bound to the specified data frame.
Public methodStatic memberCategorical
Returns a categorical term with the specified key, category index, and encoding scheme.
Public methodCompareTo
Compares this term to another one.
Public methodStatic memberDifference
Creates a model term that represents the difference between two terms.
Public methodEquals(ModelTerm)
Returns whether one model term equals another.
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExpand
Expands the model term into a term that contains only primitive terms.
Public methodExpandToCategorical
Expands the term into a collection of primitive numerical terms.
Public methodExpandToNumerical
Expands the term into a collection of primitive numerical terms.
Public methodStatic memberExpressionU
Returns a model term based on an expression that uses the specified variables.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberInteraction(ModelTerm)
Creates an interaction between multiple terms.
Public methodStatic memberInteraction(ModelTerm, ModelTerm)
Creates an interaction between two terms.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberModel
Creates a model term that represents the difference between two terms.
Public methodStatic memberNumerical(String)
Adds a numerical term with the specified key.
Public methodStatic memberNumerical(IIndex, Boolean)
Returns a collection of model terms for the columns with the specified keys in an index.
Public methodStatic memberNumerical(Int32, String, Boolean, Int32)
Returns a collection of numerical terms with keys generated from the specified prefix.
Public methodStatic memberPolynomial(ModelTerm, Int32)
Creates a model term that represents a polynomial in the specified term.
Public methodStatic memberPolynomial(String, Int32)
Constructs a term corresponding to a polynomial.
Public methodStatic memberProduct
Creates a model term that represents the complete interaction between two terms.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberUnion
Creates a union of multiple terms.
Public methodStatic memberVariable(String)
Returns a model term with the specified key.
Public methodStatic memberVariable(IDataFrame, String)
Returns a model term for the column with the specified key in the data source.
Public methodStatic memberVariables(IListString, Boolean)
Returns a collection of model terms for the columns with the specified keys.
Public methodStatic memberVariables(IDataFrame, String, Boolean)
Returns a collection of model terms for the columns with the specified keys in a data frame.
Top
Fields

  NameDescription
Public fieldStatic memberConstant
Represents a constant term or intercept.
Public fieldStatic memberDefaultDependentPrefix
Gets or sets the prefix to use for generating names of dependent variable(s) when no name was provided.
Public fieldStatic memberDefaultIndependentPrefix
Gets or sets the prefix to use for generating names of independent variable(s) when no name was provided.
Public fieldStatic memberDefaultInterceptName
Gets or sets the default name for the parameter corresponding to the intercept (constant term).
Public fieldStatic memberDefaultWeightName
Gets or sets the name to use for the weight variable when no name was provided.
Public fieldStatic memberNoConstant
Represents a term that indicates the constant term or intercept should be excluded.
Top
Remarks

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

See Also

Reference

Extreme.DataAnalysis.Models Namespace

Copyright (c) 2004-2023 ExoAnalytics Inc.

Send comments on this topic to support@extremeoptimization.com

Copyright © 2004-2023, Extreme Optimization. All rights reserved.
Extreme Optimization, Complexity made simple, M#, and M Sharp are trademarks of ExoAnalytics Inc.
Microsoft, Visual C#, Visual Basic, Visual Studio, Visual Studio.NET, and the Optimized for Visual Studio logo
are registered trademarks of Microsoft Corporation.