public class UnivariateSummaryStatistics extends AbstractCloneableSerializable
Modifier and Type | Field and Description |
---|---|
static double |
CONFIDENCE_REGION
Region of the confidence interval, 0.95.
|
Modifier | Constructor and Description |
---|---|
protected |
UnivariateSummaryStatistics(double min,
double max,
double[] quintiles,
double confidenceLower,
double confidenceUpper,
double median,
int numSamples,
double mean,
double variance,
double skewness,
double kurtosis)
Creates a new set of scalar summary statistics.
|
Modifier and Type | Method and Description |
---|---|
UnivariateSummaryStatistics |
clone()
This makes public the clone method on the
Object class and
removes the exception that it throws. |
static UnivariateSummaryStatistics |
create(java.util.Collection<? extends java.lang.Number> data)
Creates a new instance of UnivariateSummaryStatistics from a Collection
of scalar values.
|
double |
getConfidenceLower()
Getter for confidenceLower
|
double |
getConfidenceUpper()
Getter for confidenceUpper
|
double |
getKurtosis()
Getter for Kurtosis
|
double |
getMax()
Getter for max
|
double |
getMean()
Getter for mean
|
double |
getMedian()
Getter for median
|
double |
getMin()
Getter for min
|
int |
getNumSamples()
Getter for numSamples
|
double[] |
getQuintiles()
Getter for quintiles
|
double |
getSkewness()
Getter for skewness
|
double |
getVariance()
Getter for variance
|
java.lang.String |
toString() |
public static final double CONFIDENCE_REGION
protected UnivariateSummaryStatistics(double min, double max, double[] quintiles, double confidenceLower, double confidenceUpper, double median, int numSamples, double mean, double variance, double skewness, double kurtosis)
min
- The minimum.max
- The maximum.quintiles
- The quintiles.confidenceLower
- The lower bound of the confidence.confidenceUpper
- The upper bound of the confidence.median
- The median.numSamples
- The number of samples.mean
- The mean.variance
- The variance.skewness
- The skewness.kurtosis
- The kurtosis.public UnivariateSummaryStatistics clone()
AbstractCloneableSerializable
Object
class and
removes the exception that it throws. Its default behavior is to
automatically create a clone of the exact type of object that the
clone is called on and to copy all primitives but to keep all references,
which means it is a shallow copy.
Extensions of this class may want to override this method (but call
super.clone()
to implement a "smart copy". That is, to target
the most common use case for creating a copy of the object. Because of
the default behavior being a shallow copy, extending classes only need
to handle fields that need to have a deeper copy (or those that need to
be reset). Some of the methods in ObjectUtil
may be helpful in
implementing a custom clone method.
Note: The contract of this method is that you must use
super.clone()
as the basis for your implementation.clone
in interface CloneableSerializable
clone
in class AbstractCloneableSerializable
public static UnivariateSummaryStatistics create(java.util.Collection<? extends java.lang.Number> data)
data
- Data from which to cull the resultspublic java.lang.String toString()
toString
in class java.lang.Object
public double getMean()
public double getVariance()
public double getSkewness()
public double getKurtosis()
public int getNumSamples()
public double getMedian()
public double getMin()
public double getMax()
public double[] getQuintiles()
public double getConfidenceLower()
public double getConfidenceUpper()