@Test public void testDefaultAverageWhenEmpty() { average = averager.getAverage(0); assertEquals(average.value, 0d); assertEquals(average.confidence, 0.0d); }
@Deprecated public ConfidenceQualifiedNumber getAverage() { return getAverage(System.currentTimeMillis(), 0); }
RollingTimeWindowMeanEnricher extends AbstractTypeTransformingEnricher<T,Double> { @Deprecated public ConfidenceQualifiedNumber getAverage() { return getAverage(System.currentTimeMillis(), 0); } }
RollingTimeWindowMeanEnricher extends AbstractTypeTransformingEnricher<T,Double> { @Deprecated public ConfidenceQualifiedNumber getAverage() { return getAverage(System.currentTimeMillis(), 0); } RollingTimeWindowMeanEnricher();  RollingTimeWindowMeanEnricher(Entity producer, AttributeSensor<T> source, 
        AttributeSensor<Double> target, Duration timePeriod);  RollingTimeWindowMeanEnricher(Entity producer, AttributeSensor<T> source, 
            AttributeSensor<Double> target, long timePeriod); }
RollingTimeWindowMeanEnricher extends AbstractTypeTransformingEnricher<T,Double> { @Deprecated public ConfidenceQualifiedNumber getAverage() { return getAverage(System.currentTimeMillis(), 0); } RollingTimeWindowMeanEnricher();  RollingTimeWindowMeanEnricher(Entity producer, AttributeSensor<T> source, 
        AttributeSensor<Double> target, Duration timePeriod);  RollingTimeWindowMeanEnricher(Entity producer, AttributeSensor<T> source, 
            AttributeSensor<Double> target, long timePeriod); @Override void onEvent(SensorEvent<T> event); void onEvent(SensorEvent<T> event, long eventTime); @Deprecated /** @deprecated since 0.7.0; not used except in groovy tests; use the 2-arg method */ ConfidenceQualifiedNumber getAverage(); @Deprecated /** @deprecated since 0.7.0; not used except in groovy tests; use the 2-arg method */ ConfidenceQualifiedNumber getAverage(long fromTimeExact); ConfidenceQualifiedNumber getAverage(long fromTime, long graceAllowed); }
RollingTimeWindowMeanEnricher extends AbstractTypeTransformingEnricher<T,Double> { @Deprecated public ConfidenceQualifiedNumber getAverage() { return getAverage(System.currentTimeMillis(), 0); } RollingTimeWindowMeanEnricher();  RollingTimeWindowMeanEnricher(Entity producer, AttributeSensor<T> source, 
        AttributeSensor<Double> target, Duration timePeriod);  RollingTimeWindowMeanEnricher(Entity producer, AttributeSensor<T> source, 
            AttributeSensor<Double> target, long timePeriod); @Override void onEvent(SensorEvent<T> event); void onEvent(SensorEvent<T> event, long eventTime); @Deprecated /** @deprecated since 0.7.0; not used except in groovy tests; use the 2-arg method */ ConfidenceQualifiedNumber getAverage(); @Deprecated /** @deprecated since 0.7.0; not used except in groovy tests; use the 2-arg method */ ConfidenceQualifiedNumber getAverage(long fromTimeExact); ConfidenceQualifiedNumber getAverage(long fromTime, long graceAllowed); static ConfigKey<Double> CONFIDENCE_REQUIRED_TO_PUBLISH; }