mesmer.stats.HarmonicModel

mesmer.stats.HarmonicModel#

class mesmer.stats.HarmonicModel#
__init__()#

HarmonicModel class to fit a Fourier Series to monthly data using yearly predictors.

Methods

__init__()

HarmonicModel class to fit a Fourier Series to monthly data using yearly predictors.

fit(yearly_predictor, monthly_target, *[, ...])

fit harmonic model i.e. a Fourier Series to every gridcell using BIC score to select the order and least squares to fit the coefficients for each order.

from_params(params)

initialize HarmonicModel class using parameters

predict(yearly_predictor, time[, time_dim])

construct a Fourier Series from yearly predictors with fitted coeffs.

residuals(yearly_predictor, monthly_target, *)

Calculate the residuals of the fitted harmonic model

Attributes

params

The parameters of this estimator.