ToddCurve¶
- class passengersim.config.ToddCurve[source]¶
Bases:
PrettyModelCustomer preference data for Time Of Day for departure (TODD).
These curves are used to model the probability of a customer choosing various departure times based on the distance of the trip.
Attributes:
The name of this TODD curve.
Deprecated, no effect.
Deprecated, no effect.
The k-factor controlling the spread of the TODD preference distribution.
Define a TODD curve.
- name : str¶
The name of this TODD curve.
- min_distance : Annotated[int, Field(deprecated='no effect')]¶
Deprecated, no effect.
- max_distance : int¶
Deprecated, no effect.
- k_factor : float¶
The k-factor controlling the spread of the TODD preference distribution.
Larger values of
k_factorproduce a wider spread of departure-time preferences, while smaller values concentrate preferences more tightly around the peak hours.
- probabilities : dict[int, float] | None¶
Define a TODD curve.
This must be a dictionary with integer keys in the range (0, 23) inclusive, and float values in the range [0, 1]. The keys represent hours of the day, and the values represent the probability of a customer choosing to depart at that hour for trips within the specified distance range.