Package noaa.coastwatch.util
Class VariableStatisticsGenerator
java.lang.Object
noaa.coastwatch.util.VariableStatisticsGenerator
The
VariableStatisticsGenerator
class creates a
Statistics
object using a data variable and set of constraints.- Since:
- 3.3.2
- Author:
- Peter Hollemans
-
Method Summary
Modifier and TypeMethodDescriptiongenerate
(DataVariable var, DataLocationConstraints constraints) Generates a statistics object for a variable given location constraints.static VariableStatisticsGenerator
Gets an instance of this factory.
-
Method Details
-
getInstance
Gets an instance of this factory. -
generate
Generates a statistics object for a variable given location constraints.- Parameters:
var
- the variable to get data from.constraints
- the data location bounds and sparseness contraints. If the start and end bounds are not set, the contraint dims field is automatically populated from the variable dimensions.- Returns:
- the data statistics computed over the locations in the variable, subject to the location constraints.
- Throws:
IllegalArgumentException
- if inconsistencies are found in the constraints.
-