environmentaltools.temporal.fit

environmentaltools.temporal.fit(df_: DataFrame, param_: dict, par0: list, mode_: list, ref: int)[source]

Fits the data to the given probability model

Parameters:
  • df (*) – raw data

  • param (*) – the parameters of the analysis

  • par0 (*) – the guess parameters of the probability model

  • mode (*) – components of the current mode

  • ref (*) – log-likelihood value of the reference order

Returns:

the fit parameters * res[‘fun’] (float): the value of the log-likelihood function

Return type:

  • res[‘x’] (list)