Creates a new histogram by combining another histogram with this one
Creates a new histogram by combining another histogram with this one
the other stat to add
Non type-safe add - if stats are not the same type, will throw an exception
Non type-safe add - if stats are not the same type, will throw an exception
the other stat to add
Copies another histogram into this one
Copies another histogram into this one
the other stat to add
Non type-safe add - if stats are not the same type, will throw an exception
Non type-safe add - if stats are not the same type, will throw an exception
the other stat to add
Clears the stat to its original state when first initialized.
Clears the stat to its original state when first initialized. Necessary method used by the StatIterator.
date attribute in the sft
geometry attribute in the sft
Necessary method used by the StatIterator.
Necessary method used by the StatIterator. Indicates if the stat has any values or not
true if stat contains values
Compares the two stats for equivalence.
Compares the two stats for equivalence. We don't use standard 'equals' as it gets messy with mutable state and hash codes
other stat to compare
true if equals
number of bins the histogram has, per period
Compute statistics based upon the given simple feature.
Compute statistics based upon the given simple feature. This method will be called for every SimpleFeature a query returns.
feature to evaluate
time period to use for z index
simple feature type
simple feature type
Split the stat into a separate stat per time bin of z data.
Split the stat into a separate stat per time bin of z data. Allows for separate handling of the reduced data set.
Returns a JSON representation of the Stat
Returns a representation of the Stat to be serialized
Returns a representation of the Stat to be serialized
This function should return a representation (view) of the Stat to be serialized as JSON. Instances of Map can be used to represent JSON dictionaries or Seq for JSON arrays. A collection.SortedMap such as collection.immutable.ListMap is recommended if key order should be deterministic. Other types may be used but could require the creation and registration of custom serializers dependent on the JSON framework being utilized (currently Gson).
stat as a json serializable object
Tries to remove the given simple feature from the compiled statistics.
Tries to remove the given simple feature from the compiled statistics. Note: may not be possible to un-observe a feature, in which case this method will have no effect.
feature to un-evaluate
The histogram's state is stored in an indexed array, where the index is the bin number and the values are the counts.
Tracks geometry and date attributes as a single value.