ca.nengo.math.impl
Class Convolution
java.lang.Object
ca.nengo.math.impl.AbstractFunction
ca.nengo.math.impl.Convolution
- All Implemented Interfaces:
- Function, java.io.Serializable, java.lang.Cloneable
public class Convolution
- extends AbstractFunction
A numerical convolution of two one-dimensional functions.
TODO: unit tests
- Author:
- Bryan Tripp
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Convolution
public Convolution(Function one,
Function two,
float stepSize,
float window)
- Parameters:
one
- First of two functions to convolve togethertwo
- Second of two functions to convolve togetherstepSize
- Step size at which to numerically evaluate convolution integralwindow
- Window over which to evaluate convolution integral
getFunctionOne
public Function getFunctionOne()
- Returns:
- First of two functions to convolve together
setFunctionOne
public void setFunctionOne(Function function)
- Parameters:
function
- First of two functions to convolve together
getFunctionTwo
public Function getFunctionTwo()
- Returns:
- Second of two functions to convolve together
setFunctionTwo
public void setFunctionTwo(Function function)
- Parameters:
function
- Second of two functions to convolve together
getStepSize
public float getStepSize()
- Returns:
- Step size at which to numerically evaluate convolution integral
setStepSize
public void setStepSize(float stepSize)
- Parameters:
stepSize
- Step size at which to numerically evaluate convolution integral
getWindow
public float getWindow()
- Returns:
- Window over which to evaluate convolution integral
setWindow
public void setWindow(float window)
- Parameters:
window
- Window over which to evaluate convolution integral
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[])
clone
public Convolution clone()
throws java.lang.CloneNotSupportedException
- Specified by:
clone
in interface Function
- Overrides:
clone
in class AbstractFunction
- Throws:
java.lang.CloneNotSupportedException
- See Also:
Object.clone()
main
public static void main(java.lang.String[] args)