public class VariableStatisticsGenerator
extends java.lang.Object
VariableStatisticsGenerator
class creates a
Statistics
object using a data variable and set of constraints.Modifier and Type | Method and Description |
---|---|
Statistics |
generate(DataVariable var,
DataLocationConstraints constraints)
Generates a statistics object for a variable given location
constraints.
|
static VariableStatisticsGenerator |
getInstance()
Gets an instance of this factory.
|
public static VariableStatisticsGenerator getInstance()
public Statistics generate(DataVariable var, DataLocationConstraints constraints)
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.java.lang.IllegalArgumentException
- if inconsistencies are found in the
constraints.