Package org.tribuo.evaluation
Class DescriptiveStats
java.lang.Object
org.tribuo.evaluation.DescriptiveStats
Descriptive statistics calculated across a list of doubles.
-
Constructor Summary
ConstructorDescriptionCreate an empty DescriptiveStats.DescriptiveStats
(List<Double> values) Create a DescriptiveStats initialized with the supplied values. -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
getMax()
Calculates the max of the values.double
getMean()
Calculates the mean of the values.double
getMin()
Calculates the min of the values.long
getN()
Returns the number of values.double
Calculates the standard deviation of the values.double
Calculates the sample variance of the values.int
hashCode()
toString()
values()
Returns a copy of the values.
-
Constructor Details
-
DescriptiveStats
public DescriptiveStats()Create an empty DescriptiveStats. -
DescriptiveStats
Create a DescriptiveStats initialized with the supplied values.- Parameters:
values
- The initial values.
-
-
Method Details
-
getMean
public double getMean()Calculates the mean of the values.- Returns:
- The mean.
-
getVariance
public double getVariance()Calculates the sample variance of the values.- Returns:
- The sample variance.
-
getStandardDeviation
public double getStandardDeviation()Calculates the standard deviation of the values.- Returns:
- The standard deviation.
-
getMax
public double getMax()Calculates the max of the values.- Returns:
- The maximum value.
-
getMin
public double getMin()Calculates the min of the values.- Returns:
- The minimum value.
-
getN
public long getN()Returns the number of values.- Returns:
- The number of values.
-
values
Returns a copy of the values.- Returns:
- A copy of the values.
-
equals
-
hashCode
public int hashCode() -
toString
-