pastas.noisemodels.ArNoiseModel.get_correction ============================================== .. py:method:: pastas.noisemodels.ArNoiseModel.get_correction(res: pandas.Series, p: pastas.typing.ArrayLike, tindex: pandas.DatetimeIndex) -> pandas.Series Get the correction for a forecast using the noise model. :param res: The residual series. :type res: Series :param p: The parameters of the noise model. :type p: ArrayLike :param tindex: The index of the forecast. :type tindex: DatetimeIndex :returns: The correction to the forecast. :rtype: Series .. rubric:: Notes The correction is calculated as: .. math:: correction = \exp(-\Delta t / \alpha) * last_residual where :math:`\Delta t` is the time difference between the last observation and the forecast, and :math:`\alpha` is the noise parameter. .. !! processed by numpydoc !!