public interface NumericalCuts
This is an interface for accessing the numerical cut values of a clustering algorithm by index or name.
The default units are generally GeV for energy and nanoseconds for time, though this is not in any way modeled by this class.
Modifier and Type | Method and Description |
---|---|
double[] |
getDefaultValues()
Get the default cuts.
|
String[] |
getNames()
Get the names of the cuts.
|
double |
getValue(int index)
Get a cut value by index.
|
double |
getValue(String name)
Get a cut setting by name.
|
double[] |
getValues()
Get the cut values.
|
boolean |
isDefaultValues()
True if using the default cuts.
|
void |
setValue(int index,
double value)
Set the value of a cut by index.
|
void |
setValue(String name,
double value)
Set a cut value by name.
|
void |
setValues(double[] values)
Set all the cut values from an array.
|
void |
setValues(Map<String,Double> valueMap)
Set the cut values from a map of keys to values.
|
void setValues(double[] values)
values
- The cut values.double[] getValues()
double getValue(String name)
name
- The name of the cut.double getValue(int index)
index
- The index of the cut.String[] getNames()
void setValue(int index, double value)
index
- The index of the cut.value
- The value of the cut.void setValue(String name, double value)
name
- The name of the cut.value
- The value of the cut.boolean isDefaultValues()
double[] getDefaultValues()
Copyright © 2019. All rights reserved.