org.expasy.jpl.commons.collection.stat
Class LaplaceGaussRandomVar
java.lang.Object
java.lang.Number
org.expasy.jpl.commons.collection.stat.LaplaceGaussRandomVar
- All Implemented Interfaces:
- Serializable
public final class LaplaceGaussRandomVar
- extends Number
A random variable that follow the Laplace-Gauss (Normal) Probability
Distribution N(mean, variance).
- Version:
- 1.0
- Author:
- nikitin
- See Also:
- Serialized Form
withStdDev
public static LaplaceGaussRandomVar withStdDev(double mean,
double stdDev)
withPPM
public static LaplaceGaussRandomVar withPPM(double mean,
double ppm)
getMean
public double getMean()
- Returns:
- the mean
getStdDev
public double getStdDev()
- Returns:
- the stdDev
getFrequency
public double getFrequency()
- Returns:
- the frequency
setFrequency
public void setFrequency(double frequency)
- Parameters:
frequency - the frequency to set
doubleValue
public double doubleValue()
- Specified by:
doubleValue in class Number
floatValue
public float floatValue()
- Specified by:
floatValue in class Number
intValue
public int intValue()
- Specified by:
intValue in class Number
longValue
public long longValue()
- Specified by:
longValue in class Number
toString
public String toString()
- Overrides:
toString in class Object
Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.