Class MeanScale
Object
MeanScale
Stores the mean and scale for a distribution.
The scale is often the standard-deviation.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
double
getMean()
The mean.double
getScale()
The scale, typically the standard-deviation.int
hashCode()
void
setMean
(double mean) The mean.void
setScale
(double scale) The scale, typically the standard-deviation.toString()
double
zScore
(double value) Converts a value to a z-score given the parameterization in this object.
-
Constructor Details
-
MeanScale
public MeanScale(double mean, double scale) Creates a newMeanScale
instance.- Parameters:
mean
- The mean.scale
- The scale, typically the standard-deviation.
-
MeanScale
public MeanScale()
-
-
Method Details
-
zScore
public double zScore(double value) Converts a value to a z-score given the parameterization in this object.- Parameters:
value
- the value to convert.- Returns:
- the value converted to a z-score.
-
getMean
public double getMean()The mean. -
getScale
public double getScale()The scale, typically the standard-deviation. -
setMean
public void setMean(double mean) The mean. -
setScale
public void setScale(double scale) The scale, typically the standard-deviation. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-