biogeme.expressions.integrate module

Arithmetic expressions accepted by Biogeme: numerical integration

Michel Bierlaire 10.04.2025 09:27

class biogeme.expressions.integrate.IntegrateNormal(child, name, number_of_quadrature_points=30)[source]

Bases: UnaryOperator

Numerical integration

Parameters:
  • child (ExpressionOrNumeric)

  • name (str)

  • number_of_quadrature_points (int)

deep_flat_copy()[source]

Provides a copy of the expression. It is deep in the sense that it generates copies of the children. It is flat in the sense that any MultipleExpression is transformed into the currently selected expression. The flat part is irrelevant for this expression.

Return type:

IntegrateNormal

recursive_construct_jax_function(numerically_safe)[source]

Generates recursively a function to be used by biogeme_jax. Must be overloaded by each expression :rtype: Callable[[Array, Array, Array, Array], array] :return: the function takes two parameters: the parameters, and one row of the database.

Parameters:

numerically_safe (bool)

Return type:

Callable[[Array, Array, Array, Array], array]

property safe_rv_id: int

Check the presence of the random variable ID before its usage

set_specific_id(name, specific_id, the_type)[source]

The elementary IDs identify the position of each element in the corresponding datab

Parameters:

the_type (TypeOfElementaryExpression)