public class NegativeBinomial
extends hep.aida.ref.function.AbstractIFunction
k -- ( n+j-1 ) n j > ( ) p (1-p) -- ( j ) j=0In a sequence of Bernoulli trials, this is the probability that k or fewer failures precede the n-th success.
The terms are not computed individually; instead the incomplete beta integral is employed, according to the formula
y = negativeBinomial( k, n, p ) = Gamma.incompleteBeta( n, k+1, p ).
All arguments must be positive,
p[0] - scale factor
p[1] - the number of trials.
p[2] - the probability of success (must be in (0.0,1.0)).
Constructor and Description |
---|
NegativeBinomial() |
NegativeBinomial(String title) |
NegativeBinomial(String[] variableNames,
String[] parameterNames) |
Modifier and Type | Method and Description |
---|---|
double |
value(double[] v)
Get value of this function
|
addFunctionListener, annotation, clone, codeletString, dimension, excludeNormalizationAll, gradient, includeNormalizationAll, indexOfParameter, isEqual, isNormalized, normalizationParameter, normalizationRange, normalize, numberOfParameters, parameter, parameterGradient, parameterNames, parameters, providesGradient, providesNormalization, providesParameterGradient, removeFunctionListener, setCodeletString, setParameter, setParameters, setTitle, title, variableName, variableNames
isFillable, name, setFillable, setName, type, typeForClass
addListener, isConnected, removeAllListeners, removeListener, setConnected, setValid, setValidForAll
public NegativeBinomial()
public NegativeBinomial(String title)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics