environmentaltools.common.best_params

environmentaltools.common.best_params(data: DataFrame, bins: int, distrib: str, tail: bool = False)[source]

Computes the best parameters of a simple probability model based on the RMSE of the PDF.

Parameters:
  • data (pd.DataFrame) – Raw time series.

  • bins (int) – Number of bins for the histogram.

  • distrib (str) – Name of the probability model.

  • tail (bool, optional) – If True, fit only the tail. Defaults to False.

Returns:

The estimated parameters.

Return type:

list