Class SimpsonRuleCumulativeEnergyCalculator


  • public class SimpsonRuleCumulativeEnergyCalculator
    extends AbstractCumulativeEnergyCalculator
    This class contains an implementation of Simpson's rule for numerical integration given a series of sampling points and a sampling rate (more precisely, the temporal difference between two consecutive sampling points).
    This implementation is tailored to calculating cumulative energy consumption based on power consumption samples. For details about Simpson's rule, cf. calculateNextInternal().
    See Also:
    AbstractCumulativeEnergyCalculator