Nengo.ca

ca.nengo.math.impl
Class SimpleFunctions.Fold

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

public static class SimpleFunctions.Fold
extends AbstractFunction

Computes the image of x0 \in \mathbb{R} in the quotient group \mathbb{R}/\mathbb{Z}. The representative is in (-1/2,1/2].

See Also:
Serialized Form

Field Summary
 
Fields inherited from class ca.nengo.math.impl.AbstractFunction
DIMENSION_PROPERTY
 
Constructor Summary
SimpleFunctions.Fold()
          Wrapper around (x0 - Math.ceil(x0-0.5))
 
Method Summary
 float map(float[] from)
           
 
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

SimpleFunctions.Fold

public SimpleFunctions.Fold()
Wrapper around (x0 - Math.ceil(x0-0.5))

Method Detail

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:
Function.map(float[])

Nengo.ca