public class Algorithms
extends java.lang.Object
| Red (cxh) |
| Red (cxh) |
| Constructor and Description |
|---|
Algorithms() |
| Modifier and Type | Method and Description |
|---|---|
static int |
_binaryIntervalSearch(double[] A,
double key)
Do a binary interval search for the key in array A.
|
static int |
_binaryIntervalSearch(double[] A,
double key,
int imin,
int imax)
Do a binary interval search for the key in array A.
|
static double |
poissonPmf(int k,
double mean)
Return the probability mass function P(x=k) ~ Poisson(mean)
value at k, for the Poisson distribution with parameter mean
|
static double |
poissonPmf(int k,
double mean,
double logFactorial)
Return the probability mass function P(x=k) ~ Poisson(mean)
value at k, for the poisson distribution with parameter mean
|
public static double poissonPmf(int k,
double mean)
throws IllegalActionException
k - The value at which the probability mass function will be computedmean - The mean (lambda) of the poisson distributionIllegalActionExceptionjava.lang.Exception - If k < 0public static double poissonPmf(int k,
double mean,
double logFactorial)
throws IllegalActionException
k - The value at which the probability mass function will be computedmean - The mean (lambda) of the poisson distributionIllegalActionExceptionjava.lang.Exception - If k < 0public static int _binaryIntervalSearch(double[] A,
double key)
A - The search arraykey - Key to be searchedpublic static int _binaryIntervalSearch(double[] A,
double key,
int imin,
int imax)
A - A The search arraykey - Key to be searchedimin - minimum array index to look for keyimax - maximum array index to look for key