public class IndicatorPDF extends java.lang.Object implements PDF
Constructor and Description |
---|
IndicatorPDF(float exact) |
IndicatorPDF(float low,
float high) |
public IndicatorPDF(float low, float high)
low
- Lower limit of range of possible valueshigh
- Upper limit of range of possible valuespublic IndicatorPDF(float exact)
exact
- A value at which the PDF is infinity (zero at other values)public void setLow(float low)
low
- Lower limit of range of possible valuespublic void setHigh(float high)
high
- Upper limit of range of possible valuespublic float getLow()
public float getHigh()
public float getDensity()
public float[] sample()
sample
in interface PDF
PDF.sample()
public int getDimension()
getDimension
in interface Function
Function.getDimension()
public float map(float[] from)
map
in interface Function
from
- Must have same length as getDimension()Function.map(float[])
public float[] multiMap(float[][] from)
multiMap
in interface Function
from
- An array of arguments; each element must have length getDimension().Function.multiMap(float[][])