error_terms module¶
- class error_terms.EVError(loc: float = 0, scale: float = 1)[source]¶
Bases:
ErrorTermsThis class creates an EV distributed error term. The default is a type 1 gumbel distribution.
Attributes:¶
loc: location of the EV distribution
scale: scale of the EV distribution
Methods:¶
update: updates parameters of the distribution
draw: draws a value from distribution
- class error_terms.ErrorTerms(distribution: List | rv_continuous_frozen | None = None)[source]¶
Bases:
objectThis class creates error terms to be used in the utility function
Attributes:¶
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)
Methods:¶
draw: draws a value from distribution
- class error_terms.GaussianError(mean: float = 0, std: float = 1)[source]¶
Bases:
ErrorTermsThis class creates a normally distributed error term. The default is a standard normal distribution.
Attributes:¶
mean: mean of the normal distribution
std: mean of the normal distribution
Methods:¶
update: updates parameters of the distribution
draw: draws a value from distribution
- class error_terms.PseudoRandomError(distribution: List)[source]¶
Bases:
ErrorTermsThis class creates pseudorandom error terms.
Attributes:¶
distribution: list of pseudorandom terms
Methods:¶
update: updates parameters of the distribution
draw: draws a value from distribution