Skip to main content

input_times.fit_dist()

Generate the required parameters for the chosen distribution.

Usage

Source

input_times.fit_dist(
    dist,
    data,
    time_data_unit,
)

Parameters

dist: str

Name of distribution to use, as named in sim-tools.

data: pd.Series

Time series data sample to get parameters for.

time_data_unit: str
Whether the provided raw data is in seconds (“s”) or minutes (“m”).

Returns

dict
Dictionary in format suitable for sim-tools distribution registry.