Class generating the analytical derivative of an expression. More...
Public Member Functions | |
def | __init__ |
def | getExpression |
Public Attributes | |
function | |
variable | |
operatorIndex |
Class generating the analytical derivative of an expression.
This class generates the expression for
The computation of derivatives is usually not necessary for estimation, as Biogeme automatically generates the analytical derivatives of the log likelihood function. It is particularly usuful for simulation, to compute the elasticities of complex models. Example: The computation of the elasticity of a model prob with respect to the variable TRAIN_TT, say, is obtained as follows, whatever the model defined by prob:
elasticity = Derive(prob,'TRAIN_TT') * TRAIN_TT / prob
def bio_expression::Derive::__init__ | ( | self, | |
term, | |||
v | |||
) |
term | any valid bio_expression to derive |
v | the variable |
def bio_expression::Derive::getExpression | ( | self ) |
Reimplemented from bio_expression::Expression.
Reimplemented from bio_expression::Expression.