public class Binomial extends RandomNumber
BasicFunction.Differentiable<N extends Number,F extends BasicFunction>, BasicFunction.Integratable<N extends Number,F extends BasicFunction>, BasicFunction.PlainUnary<T,R>
Constructor and Description |
---|
Binomial() |
Binomial(int aCount,
double aProbability) |
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()!
|
checkProbabilty, doubleValue, floatValue, getStandardDeviation, intValue, invoke, longValue, newSampleSet, random, setSeed, toString
byteValue, shortValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getStandardDeviation
andThen, get, getAsDouble
public Binomial()
public Binomial(int aCount, double aProbability)
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.