|
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.synapses.AbstractSynapse
ch.unizh.ini.friend.simulation.synapses.ScalingSynapse
public class ScalingSynapse
A simple scaling synapse.
Field Summary | |
---|---|
static float |
DEFAULT_WEIGHT
The default weight with which the input will be multiplied. |
protected float |
weight
The weight with which the input will be multiplied. |
Fields inherited from class ch.unizh.ini.friend.simulation.AbstractAcceptsInput |
---|
inputs |
Constructor Summary | |
---|---|
ScalingSynapse()
Creates a new instance with currently no inputs and the default weight. |
|
ScalingSynapse(Collection inputs,
float weight)
Creates a new instance with the given collection of inputs and weight. |
|
ScalingSynapse(float weight)
Creates a new instance with currently no inputs and the given scaling factor. |
|
ScalingSynapse(ServesOutput input,
float weight)
Creates a new instance with the given input and weight. |
Method Summary | |
---|---|
float |
getWeight()
Returns the weight with which the input will be multiplied. |
float |
output()
Returns the current output value of the component. |
void |
setWeight(float weight)
Sets the weight with which the input will be multiplied. |
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 |
---|
public static float DEFAULT_WEIGHT
protected float weight
Constructor Detail |
---|
public ScalingSynapse(float weight)
weight
- The scaling factor/weight.public ScalingSynapse()
public ScalingSynapse(Collection inputs, float weight)
inputs
- The collection of inputs.weight
- The scaling factor/weight.public ScalingSynapse(ServesOutput input, float weight)
input
- The input.weight
- The scaling factor/weight.Method Detail |
---|
public float output()
public float getWeight()
public void setWeight(float weight)
weight
- New weight.
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |