org.expasy.jpl.commons.collection.stat
Class LaplaceGaussRandomVar

java.lang.Object
  extended by java.lang.Number
      extended by 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

Method Summary
 double doubleValue()
           
 float floatValue()
           
 double getFrequency()
           
 double getMean()
           
 double getStdDev()
           
 int intValue()
           
 long longValue()
           
 void setFrequency(double frequency)
           
 String toString()
           
static LaplaceGaussRandomVar withPPM(double mean, double ppm)
           
static LaplaceGaussRandomVar withStdDev(double mean, double stdDev)
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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.