public class ExponentialPDF extends AbstractFunction implements PDF
DIMENSION_PROPERTY
Constructor and Description |
---|
ExponentialPDF(float tau) |
Modifier and Type | Method and Description |
---|---|
PDF |
clone() |
float |
getTau() |
float |
map(float[] from) |
float[] |
sample() |
void |
setTau(float tau) |
getCode, getDimension, getName, multiMap, setCode, setName
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDimension, multiMap
public ExponentialPDF(float tau)
tau
- Rate parameter of exponential distributionpublic float getTau()
public void setTau(float tau)
tau
- Rate parameter of exponential distributionpublic float map(float[] from)
map
in interface Function
map
in class AbstractFunction
from
- Must have same length as getDimension()AbstractFunction.map(float[])
public float[] sample()
sample
in interface PDF
PDF.sample()