autowisp.fit_expression.interface module

Class Inheritance Diagram

Inheritance diagram of CommonTokenStream, CountTermsVisitor, EvaluateTermsVisitor, FitTermsLexer, FitTermsParser, InputStream, Interface, ListTermsVisitor, UsedVarFinder

An interface for working with fitting terms expressions.

class autowisp.fit_expression.interface.Interface(expression)[source]

Bases: object

Inheritance diagram of autowisp.fit_expression.interface.Interface

Interface class for working with fit terms expressions.

_number_terms

Once terms are counted, this attribute stores the result for re-use.

__call__(*data)[source]

Return an array of the term values for the given data.

__init__(expression)[source]

Create an interface for working with the given expression.

get_term_str_list()[source]

Return strings of the individual terms the expression expands to.

get_var_names()[source]

Return the names of the variables used in expression.

number_terms()[source]

Return the number of terms the expression expands to.