Biogeme: Python Library  2.5
boxcox.py
Go to the documentation of this file.
1 ## \file
2 # Function implementing the Box-Cox transform of a variable
3 from biogeme import *
4 
5 ## Implements the Box-Cox transform of a variable
6 # @ingroup specs
7 # @param x variable to be transformed
8 # @param lambda \f$\lambda\f$ parameter of the transformation
9 # @return The Box-Cox transform, that is
10 # \f[ \frac{x^\lambda - 1 }{\lambda} \f]
11 def boxcox(x,l):
12  return (x**l - 1) / l
def boxcox(x, l)
Implements the Box-Cox transform of a variable.
Definition: boxcox.py:11
Copyright 2016 Michel Bierlaire