Forecast

class passengersim.core.Forecast

Bases: object

Forecast objects

Methods

__init__(*args, **kwargs)

add_obs

Add information to the latest departure

compute_forecast

Demand forecasting full array

detruncate

Demand detruncation

expected_demand_given_capacity

Expected demand given capacity, used in EM detruncation

get_detruncated_demand_array

Get the detruncated demand data as a numpy array

get_detruncated_demand_which_data

Get the which_data for the detruncated demand

get_mean_in_timeframe

Get the mean demand in a timeframe

get_mean_to_departure

Get the mean demand to departure for a DCP

get_stdev_in_timeframe

Get the standard deviation of demand in a timeframe

get_stdev_to_departure

Get the standard deviation of demand to departure for a DCP

get_vectors

Vectors by DCP for various aspects of the forecast

normal_cdf

Normal CDF, used in detruncation

normal_inv_cdf

Inverse normal CDF, used in detruncation

print

Print out all the data, for debugging

set_vectors

Set vectors by DCP for various aspects of the forecast

Attributes

detruncation_source

history

mean_to_dep

name

std_dev_to_dep

add_obs()

Add information to the latest departure

compute_forecast()

Demand forecasting full array

detruncate()

Demand detruncation

detruncation_source
expected_demand_given_capacity()

Expected demand given capacity, used in EM detruncation

get_detruncated_demand_array()

Get the detruncated demand data as a numpy array

get_detruncated_demand_which_data()

Get the which_data for the detruncated demand

get_mean_in_timeframe()

Get the mean demand in a timeframe

get_mean_to_departure()

Get the mean demand to departure for a DCP

get_stdev_in_timeframe()

Get the standard deviation of demand in a timeframe

get_stdev_to_departure()

Get the standard deviation of demand to departure for a DCP

get_vectors()

Vectors by DCP for various aspects of the forecast

history
mean_to_dep
name
normal_cdf()

Normal CDF, used in detruncation

normal_inv_cdf()

Inverse normal CDF, used in detruncation

print()

Print out all the data, for debugging

set_vectors()

Set vectors by DCP for various aspects of the forecast

std_dev_to_dep