Class Statistics<P extends PeriodType>

java.lang.Object
com.storedobject.core.StoredObject
com.storedobject.iot.Statistics<P>
Type Parameters:
P - Period type
All Implemented Interfaces:
Displayable, StringFiller, DBTransaction.NoHistory, HasId
Direct Known Subclasses:
DailyStatistics, HourlyStatistics, MonthlyStatistics, WeeklyStatistics, YearlyStatistics

public abstract class Statistics<P extends PeriodType> extends StoredObject implements DBTransaction.NoHistory
Represents statistical data pertaining to units and periods. This class provides methods for calculating and updating statistics, including minimum, maximum, mean, standard deviation, and count for a dataset. It is designed to handle various periods such as hourly, daily, weekly, monthly, and yearly.

Concrete subclasses must define the specific period-related methods and data fields.

Author:
Syam