Nengo.ca

ca.nengo.math.impl
Class PDFFunction

java.lang.Object
  extended by ca.nengo.math.impl.AbstractFunction
      extended by ca.nengo.math.impl.PDFFunction
All Implemented Interfaces:
Function, java.io.Serializable, java.lang.Cloneable

public class PDFFunction
extends AbstractFunction

A Function that produces outputs drawn from a given distribution.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ca.nengo.math.impl.AbstractFunction
DIMENSION_PROPERTY
 
Constructor Summary
PDFFunction(PDF pdf)
           
 
Method Summary
 PDF getPDF()
           
 float map(float[] from)
           
 void setPDF(PDF pdf)
           
 
Methods inherited from class ca.nengo.math.impl.AbstractFunction
clone, getCode, getDimension, getName, multiMap, setCode, setName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFFunction

public PDFFunction(PDF pdf)
Parameters:
signal - sequence defining output (each element is a (potentially) multidimensional output)
dimension - Dimension of signal on which to base Function output
Method Detail

getPDF

public PDF getPDF()
Returns:
TimeSeries from which to obtain Function of time

setPDF

public void setPDF(PDF pdf)
Parameters:
pdf - input PDF

map

public float map(float[] from)
Specified by:
map in interface Function
Specified by:
map in class AbstractFunction
Parameters:
from - Must have same length as getDimension()
Returns:
result of function operation on arg
See Also:
AbstractFunction.map(float[])

Nengo.ca