예제 #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
파일: iuhtools.py 프로젝트: CMetzkes/hydpy
 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 moment2(self) -> float:
     """The second time delay weighted statistical momens of the instantaneous unit
     hydrograph."""
     moment1 = self.moment1
     delays, response = self.delay_response_series
     return statstools.calc_mean_time_deviation(delays, response, moment1)