error_terms module¶
- class error_terms.EVError(loc: float = 0, scale: float = 1)[source]¶
Bases:
ErrorTerms
This class creates an EV distributed error term. The default is a type 1 gumbel distribution.
loc: location of the EV distribution
scale: scale of the EV distribution
update: updates parameters of the distribution
draw: draws a value from distribution
- class error_terms.ErrorTerms(distribution: Optional[Union[List, rv_frozen]] = None)[source]¶
Bases:
object
This class creates error terms to be used in the utility function
distribution: either a valid scipy frozen distribution, or a list of values
value: current value of the error terms, which is a draw from distribution
dist_type: type of distribution (scipy object, list, or other)
draw: draws a value from distribution
- class error_terms.GaussianError(mean: float = 0, std: float = 1)[source]¶
Bases:
ErrorTerms
This class creates a normally distributed error term. The default is a standard normal distribution.
mean: mean of the normal distribution
std: mean of the normal distribution
update: updates parameters of the distribution
draw: draws a value from distribution
- class error_terms.PseudoRandomError(distribution: List)[source]¶
Bases:
ErrorTerms
This class creates pseudorandom error terms.
distribution: list of pseudorandom terms
update: updates parameters of the distribution
draw: draws a value from distribution