|
The Physiologist's Friend Simulation API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.unizh.ini.friend.simulation.AbstractAcceptsInput
ch.unizh.ini.friend.simulation.cells.AbstractCell
ch.unizh.ini.friend.simulation.cells.HorizontalCell
public class HorizontalCell
Cell that averages the inputs and outputs the lowpass-filtered value. You can set the lowpass time constant with setTau(float)
.
Field Summary | |
---|---|
protected Filter |
lowPass
A low-pass filter. |
protected float |
tau
the lowpass time constant of the HorizontalCell |
Fields inherited from class ch.unizh.ini.friend.simulation.cells.AbstractCell |
---|
newValue, value |
Fields inherited from class ch.unizh.ini.friend.simulation.AbstractAcceptsInput |
---|
inputs |
Constructor Summary | |
---|---|
HorizontalCell()
Creates a new instance with currently no inputs. |
|
HorizontalCell(Collection inputs)
Creates a new instance with the given collections of inputs and weights. |
|
HorizontalCell(int n)
Creates a new instance with currently no inputs and with the given initial capacity. |
Method Summary | |
---|---|
void |
compute(float dt)
Computes the new state of this component of the simulation. |
float |
getGradedOutput()
returns the graded output from the cell |
float |
getTau()
Getter for property tau. |
void |
setTau(float tau)
Setter for property tau. |
Methods inherited from class ch.unizh.ini.friend.simulation.cells.AbstractCell |
---|
output, update |
Methods inherited from class ch.unizh.ini.friend.simulation.AbstractAcceptsInput |
---|
averageInputs, cloneObject, connectOneToAll, connectOneToOne, getCollectionInstance, getInput, getInputs, integrateInputs, setInput, setInputs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected float tau
protected Filter lowPass
Constructor Detail |
---|
public HorizontalCell()
public HorizontalCell(int n)
n
- Number of initial capacity for inputs.public HorizontalCell(Collection inputs)
inputs
- The collection of inputs.Method Detail |
---|
public void compute(float dt)
compute
in interface Updateable
dt
- The time that has passed since the last invocation.public float getGradedOutput()
getGradedOutput
in interface GradedCell
public float getTau()
tau
public void setTau(float tau)
tau
- New value of property tau.tau
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |