public interface Projection
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
addBias(int numInterneurons,
float tauInterneurons,
float tauBias,
boolean excitatory,
boolean optimize)
Makes all the synaptic weights in the projection either positive or negative, so that the projection
accords with Dale's principle.
|
boolean |
biasIsEnabled() |
void |
enableBias(boolean enable) |
Network |
getNetwork() |
Origin |
getOrigin() |
Termination |
getTermination() |
float[][] |
getWeights() |
void |
removeBias()
Deletes bias-related interneurons, projections, origins, and terminations.
|
java.lang.String |
toScript(java.util.HashMap<java.lang.String,java.lang.Object> scriptData) |
Origin getOrigin()
Termination getTermination()
Network getNetwork()
void addBias(int numInterneurons, float tauInterneurons, float tauBias, boolean excitatory, boolean optimize) throws StructuralException
numInterneurons
- Number of interneurons through which bias function is projectedtauInterneurons
- Time constant of post-synaptic current in projection from presynaptic ensemble to interneurons (typically short)tauBias
- Time constant of post-synaptic current in projection from interneurons to postsynaptic ensembleexcitatory
- If true, synapses in main projection are made excitatory; if false, inhibitoryoptimize
- If true, performs optimizations to minimize distortion in the parallel projection through interneuronsStructuralException
- if bias can't be addedvoid removeBias()
void enableBias(boolean enable)
enable
- If true, and initializeBias(...) has been called, then bias is enabled; if false it is disabled (default true)boolean biasIsEnabled()
float[][] getWeights()
java.lang.String toScript(java.util.HashMap<java.lang.String,java.lang.Object> scriptData) throws ScriptGenException
ScriptGenException