public class FieldConfidenceInterval extends ConfidenceInterval
Constructor and Description |
---|
FieldConfidenceInterval(java.lang.reflect.Field field,
ConfidenceInterval confidenceInterval)
Creates a new instance of FieldConfidenceInterval
|
Modifier and Type | Method and Description |
---|---|
static <DataType> java.util.ArrayList<FieldConfidenceInterval> |
computeConfidenceInterval(java.util.Collection<DataType> data,
java.util.ArrayList<java.lang.reflect.Field> interestedFields,
ConfidenceIntervalEvaluator<java.util.Collection<? extends java.lang.Number>> confidenceIntervalEvaluator,
double confidence)
Computes a FieldConfidenceInterval for the given Fields in the given data
|
static <DataType> java.util.ArrayList<FieldConfidenceInterval> |
computeConfidenceInterval(java.util.Collection<DataType> data,
ConfidenceIntervalEvaluator<java.util.Collection<? extends java.lang.Number>> confidenceIntervalEvaluator,
double confidence)
Computes a FieldConfidenceInterval for each Double/double Field
in the given data.
|
java.lang.reflect.Field |
getField()
Getter for field
|
boolean |
isMatch(java.lang.reflect.Field field)
Determines if the given field is a match to the internal Field
|
boolean |
isMatch(java.lang.String fieldName)
Determines if the given field is a match to the internal Field
|
void |
setField(java.lang.reflect.Field field)
Setter for field
|
java.lang.String |
toString() |
boolean |
withinInterval(java.lang.Object o)
Determines whether the Field within the given Object is within the
specified interval
|
getCentralValue, getConfidence, getLowerBound, getNumSamples, getUpperBound, setCentralValue, setConfidence, setLowerBound, setNumSamples, setUpperBound, withinInterval
clone
public FieldConfidenceInterval(java.lang.reflect.Field field, ConfidenceInterval confidenceInterval)
field
- Field associated with the confidence intervalconfidenceInterval
- ConfidenceInterval associated with the Fieldpublic boolean isMatch(java.lang.reflect.Field field)
field
- Field to compare against the internal Fieldpublic boolean isMatch(java.lang.String fieldName)
fieldName
- Field name to compare against the internal Fieldpublic boolean withinInterval(java.lang.Object o)
o
- Object from which to pull the Field's value to determine if it's
within the specified intervalpublic java.lang.reflect.Field getField()
public void setField(java.lang.reflect.Field field)
field
- Field associated with the confidence intervalpublic java.lang.String toString()
toString
in class ConfidenceInterval
public static <DataType> java.util.ArrayList<FieldConfidenceInterval> computeConfidenceInterval(java.util.Collection<DataType> data, ConfidenceIntervalEvaluator<java.util.Collection<? extends java.lang.Number>> confidenceIntervalEvaluator, double confidence)
DataType
- The type of data to compute the confidence interval
over.data
- Collection of data from which to pull the values. Must all be same type!confidenceIntervalEvaluator
- Statistical test that transforms a Collection of Doubles into a
ConfidenceIntervalconfidence
- Confidence (power) of the resulting ConfidenceIntervalpublic static <DataType> java.util.ArrayList<FieldConfidenceInterval> computeConfidenceInterval(java.util.Collection<DataType> data, java.util.ArrayList<java.lang.reflect.Field> interestedFields, ConfidenceIntervalEvaluator<java.util.Collection<? extends java.lang.Number>> confidenceIntervalEvaluator, double confidence)
DataType
- The type of data to compute the confidence interval
over.interestedFields
- Fields from which to pull datadata
- Collection of data from which to pull the values. Must all be same type!confidenceIntervalEvaluator
- Statistical test that transforms a Collection of Doubles into a
ConfidenceIntervalconfidence
- Confidence (power) of the resulting ConfidenceInterval