public class DataFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
private static int |
MAXFLAG
The flag with the highest value.
|
| Constructor and Description |
|---|
DataFactory() |
| Modifier and Type | Method and Description |
|---|---|
static DataEvent |
average(List allevents)
Averages over a list of data events to produce a single data event of
the same type.
|
private static CumulativeDataEvent |
averageCumulativeDataEvent(List de)
Averages over cumulative data events.
|
private static DerivativeDataEvent |
averageDerivativeDataEvent(List de)
Averages over derivative data events.
|
private static PredictiveDataEvent |
averagePredictiveDataEvent(List de)
Averages over predictive data events.
|
private static CumulativeDataEvent |
averageRawDataEvent(List de)
Averages over raw data events.
|
private static SmoothDataEvent |
averageSmoothDataEvent(List de)
Averages over smooth data events.
|
private static final int MAXFLAG
WeatherEvent.public static final DataEvent average(List allevents)
private static final CumulativeDataEvent averageRawDataEvent(List de)
CumulativeDataEvent. Min/max is set to the minimum/maximum of
the individual data point. If the errors to the measurements are not
defined, the
standard deviation of the data points is used as an error estimate. The
returned data event is valid if at least one averaged data event is
valid.de - A non-null, non-empty list of raw data events.private static final CumulativeDataEvent averageCumulativeDataEvent(List de)
CumulativeDataEvent. Min/max is set to the minimum/maximum of
the individual data events, if defined, otherwise the data max/min is
used. If the errors to the measurements are not defined, the
standard deviation of the measurements is used as an error estimate.de - A non-null, non-empty list of cumulative data events.private static final PredictiveDataEvent averagePredictiveDataEvent(List de)
PredictiveDataEvent. Min/max is set to the minimum/maximum of
the individual data events, if defined, otherwise the data max/min is
used.de - A non-null, non-empty list of predictive data events.private static final SmoothDataEvent averageSmoothDataEvent(List de)
SmoothDataEvent. Min/max is set to the minimum/maximum of
the individual data events, if defined, otherwise the data max/min is
used.de - A non-null, non-empty list of smooth data events.private static final DerivativeDataEvent averageDerivativeDataEvent(List de)
DerivativeDataEvent. Min/max is set to the minimum/maximum of
the individual data events, if defined, otherwise the data max/min is
used.de - A non-null, non-empty list of smooth data events.