Package org.sensorhub.api.datastore.obs
Class ObsStats
java.lang.Object
org.sensorhub.api.datastore.obs.ObsStats
Immutable object representing statistics for observations associated to a pair of single data stream and FOI.
- Since:
- Sep 13, 2019
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
ObsStats.ObsStatsBuilder<B extends ObsStats.ObsStatsBuilder<B,
T>, T extends ObsStats> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BigId
protected FeatureId
protected int[]
protected Bbox
protected TimeExtent
protected TimeExtent
protected long
-
Method Summary
-
Field Details
-
dataStreamID
-
foiID
-
phenomenonTimeRange
-
resultTimeRange
-
phenomenonBbox
-
totalObsCount
protected long totalObsCount -
obsCountsByTime
protected int[] obsCountsByTime
-
-
Method Details
-
getDataStreamID
- Returns:
- The ID of the datastream that these statistics apply to
-
getFoiID
- Returns:
- The unique ID of the feature of interest targeted by observations in this bucket.
-
getPhenomenonTimeRange
- Returns:
- The time range spanned by phenomenon times of all selected observations
-
getResultTimeRange
- Returns:
- The time range spanned by result times of all selected observations.
There are 3 main cases:
- The returned range is equal to the phenomenon time range for many sensors for which sampling and measurement operations are considered to be simultaneous (most electronic sensors fit into this category).
- The returned range is different from the phenomenon time range when the measured phenomenon happened in the past or is forecasted to happen in the future.
- A time instant is returned if all observation in the series share the same result time (e.g. model run).
-
getPhenomenonBbox
- Returns:
- Bounding rectangle enclosing phenomenon locations of all selected observations
-
getTotalObsCount
public long getTotalObsCount()- Returns:
- The total number of selected observations
-
getObsCountsByTime
public int[] getObsCountsByTime()- Returns:
- The histogram of observation counts vs. time
-
toString
-