use of com.serotonin.m2m2.view.stats.AnalogStatistics in project ma-core-public by infiniteautomation.
the class NumericPointWrapper method getStats.
public AnalogStatisticsWrapper getStats(long from, long to) {
PointValueTime start = point.getPointValueBefore(from);
List<PointValueTime> values = point.getPointValuesBetween(from, to);
AnalogStatistics stats = new AnalogStatistics(from, to, start, values);
AnalogStatisticsWrapper wrapper = new AnalogStatisticsWrapper(stats);
return wrapper;
}
Aggregations