|
Nengo.ca | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.nengo.math.impl.AbstractFunction
ca.nengo.math.impl.SimpleFunctions.Fold
public static class SimpleFunctions.Fold
Computes the image of x0 \in \mathbb{R} in the quotient group \mathbb{R}/\mathbb{Z}. The representative is in (-1/2,1/2].
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 |
---|
public SimpleFunctions.Fold()
Method Detail |
---|
public float map(float[] from)
map
in interface Function
map
in class AbstractFunction
from
- Must have same length as getDimension()
Function.map(float[])
|
Nengo.ca | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |