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 booleanbooleandoublegetMean()The mean.doublegetScale()The scale, typically the standard-deviation.inthashCode()voidsetMean(double mean) The mean.voidsetScale(double scale) The scale, typically the standard-deviation.toString()doublezScore(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 newMeanScaleinstance.- 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
-