Public Member Functions | Public Attributes

bio_expression::DefineVariable Class Reference

Class representing the definition of a new variable. More...

Inheritance diagram for bio_expression::DefineVariable:
bio_expression::Expression

List of all members.

Public Member Functions

def __init__
def getExpression

Public Attributes

 name
 expression
 operatorIndex

Detailed Description

Class representing the definition of a new variable.

Defining a new variable is equivalent to add a column to the data file. Note that the expression defining the new variable is computed during the processing of the data file, before the estimation, so that it saves computational time to define variables using this technique. Example:

 TRAIN_TT_SCALED = DefineVariable('TRAIN_TT_SCALED', TRAIN_TT / 100.0)

will result in a more efficient estimation than the statement:

 TRAIN_TT_SCALED = TRAIN_TT / 100.0

Constructor & Destructor Documentation

def bio_expression::DefineVariable::__init__ (   self,
  name,
  expression 
)
Parameters:
namename of the variable
expressionexpression to compute the value of the variable

Member Function Documentation

def bio_expression::DefineVariable::getExpression (   self )
Returns:
Return the string representation of the current expression

Reimplemented from bio_expression::Expression.


Member Data Documentation

Reimplemented from bio_expression::Expression.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables