Interface WindowCalculator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double processValue​(double observation, double duration)
      Calculates how the current window's value has to change when integrating the given observation:
    • Method Detail

      • processValue

        double processValue​(double observation,
                            double duration)
        Calculates how the current window's value has to change when integrating the given observation:
         currentWindow = currentWindow + processValue(observation, duration)
         
        This method will be called at least once per window. The common case is, however, that this method is called multiple times for each window in order to incrementally fill the window.
        Parameters:
        observation - the observation to be integrated
        duration - the time span the observation is valid
        Returns:
        the summand that needs to be added (mathematically) to the current window's value so that the observations subsumed by the window include the passed observation.