Пример #1
0
 def moments(self):
     """The first two time delay weighted statistical moments of the
     MA coefficients."""
     moment1 = statstools.calc_mean_time(self.delays, self.coefs)
     moment2 = statstools.calc_mean_time_deviation(self.delays, self.coefs,
                                                   moment1)
     return numpy.array([moment1, moment2])
Пример #2
0
 def moments(self) -> Tuple[float, float]:
     """The first two time delay weighted statistical moments of the MA
     coefficients."""
     moment1 = statstools.calc_mean_time(self.delays, self.coefs)
     moment2 = statstools.calc_mean_time_deviation(self.delays, self.coefs,
                                                   moment1)
     return moment1, moment2
Пример #3
0
 def moments(self):
     """The first two time delay weighted statistical moments of the
     instantaneous unit hydrograph."""
     delays, response = self.delay_response_series
     moment1 = statstools.calc_mean_time(delays, response)
     moment2 = statstools.calc_mean_time_deviation(delays, response,
                                                   moment1)
     return numpy.array([moment1, moment2])
Пример #4
0
 def moments(self):
     """The first two time delay weighted statistical moments of the
     ARMA response."""
     timepoints = self.ma.delays
     response = self.response
     moment1 = statstools.calc_mean_time(timepoints, response)
     moment2 = statstools.calc_mean_time_deviation(timepoints, response,
                                                   moment1)
     return numpy.array([moment1, moment2])
Пример #5
0
 def moments(self) -> Tuple[float, float]:
     """The first two time delay weighted statistical moments of the ARMA
     response."""
     timepoints = self.ma.delays
     response = self.response
     moment1 = statstools.calc_mean_time(timepoints, response)
     moment2 = statstools.calc_mean_time_deviation(timepoints, response,
                                                   moment1)
     return moment1, moment2
Пример #6
0
 def moment1(self) -> float:
     """The first time delay weighted statistical moment of the instantaneous unit
     hydrograph."""
     delays, response = self.delay_response_series
     return statstools.calc_mean_time(delays, response)