pastas.noisemodels.ArNoiseModel.weights ======================================= .. py:method:: pastas.noisemodels.ArNoiseModel.weights(res: pandas.Series, p: pastas.typing.ArrayLike) -> pandas.Series Method to calculate the weights for the noise. :param res: Pandas Series with the residuals to compute the weights for. The Series index must be a DatetimeIndex. :type res: pandas.Series :param p: NumPy array with the parameters used in the noise model. :type p: array_like :returns: **w** -- Series of the weights. :rtype: pandas.Series .. rubric:: Notes Weights are .. math:: w = 1 / sqrt((1 - exp(-2 \Delta t / \alpha))) which are then normalized so that sum(w) = len(res). .. !! processed by numpydoc !!