public class Poisson extends RandomNumber
BasicFunction.Differentiable<N extends Comparable<N>,F extends BasicFunction>, BasicFunction.Integratable<N extends Comparable<N>,F extends BasicFunction>, BasicFunction.PlainUnary<T,R>
Modifier and Type | Method and Description |
---|---|
protected double |
generate() |
double |
getExpected() |
double |
getProbability(int value)
Probability density function
|
double |
getVariance()
Subclasses must override either getStandardDeviation() or getVariance()!
|
static Poisson |
of(double lambda) |
checkProbabilty, compareTo, doubleValue, floatValue, getStandardDeviation, intValue, invoke, longValue, newSampleSet, random, setSeed, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getStandardDeviation
andThen, get, getAsDouble
booleanValue, byteValue, shortValue
public static Poisson of(double lambda)
public double getExpected()
public double getProbability(int value)
DiscreteDistribution
public double getVariance()
RandomNumber
getVariance
in interface Distribution
getVariance
in class RandomNumber
Distribution.getStandardDeviation()
,
Distribution.getVariance()
protected double generate()
generate
in class RandomNumber
Copyright © 2019 Optimatika. All rights reserved.