public final class LayerStructure extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ABMAP |
Map<Integer,Axon> |
axons |
int |
back_idum2 |
int[] |
back_iv |
int |
back_iy |
int |
backseed |
int |
base |
Map<String,TreeSet<Synapse>>[] |
branchmaps
Deprecated.
|
String[] |
celltype
Deprecated.
|
int |
edgeLengthX |
int |
edgeLengthY |
Seed |
idum |
Map<String,Integer> |
indexmap
for slow cellmap
|
List<Layer> |
layerList |
static int |
LINEMAP |
int |
neuron_end |
Neuron[] |
neurons
holds reference to neuron array after sent to network
|
int[] |
nodeEndIndices
end index in neuron for each node; .length=number parallel nodes
|
int |
numberOfNeurons |
int |
numSYN |
Map<String,Integer> |
prefixSuffixToLayerIndexMap |
Map<Integer,Map<String,SizeID>> |
scaffold
Scaffold is used to help to build up the network structure,
which should be private
|
static int |
sectionsInAxisX |
static int |
sectionsInAxisY |
Constructor and Description |
---|
LayerStructure(ModelFactory modelFactory,
int nodeCount,
int edgeLengthX,
int edgeLengthY) |
Modifier and Type | Method and Description |
---|---|
void |
abmapcells_Main(int a,
int b)
Used in main Host, which is fast and used only to get numbers.
|
void |
abmapcells(int a,
int b,
int host_id)
Give the nethost id, map the cells in a times b, fast method.
|
void |
addLayer(String pre,
String suf,
int xmult,
int ymult,
String type) |
void |
addLayer(String pre,
String suf,
int mult,
String type)
Add one layer of neurons into the structure.
|
void |
buildStructure(int hostId)
For nethost with id Hostid, build up the structure by using the scaffold build before.
|
int[] |
celllayer_cordinate(int index,
String pre,
String suf)
Deprecated.
|
boolean |
celllayer_test(int index,
String pre,
String suf)
Deprecated.
|
int |
cellmap_slow(String pre,
String suf,
int x,
int y)
Deprecated.
|
String |
celltype_slow(int index)
Deprecated.
|
double |
changeConnection(String f_pre,
String f_suf,
String t_pre,
String t_suf,
boolean convergent,
double stre,
int type,
double delay,
double[][] trans,
int hostId,
boolean periodic)
Deprecated.
|
double |
changeConnection(String f_pre,
String f_suf,
String t_pre,
String t_suf,
double stre,
int type,
double delay,
double[][] trans,
int hostId)
Deprecated.
|
int[] |
closePoint(int iterx,
int itery,
String tpre,
String tsuf)
Given tolayer of neuron and iterx, itery coordinates,
return the closest point.
|
void |
connect(String f_pre,
String f_suf,
String t_pre,
String t_suf,
boolean convergent,
double stre,
byte type,
double delay,
int idum)
Deprecated.
|
double |
connect(String f_pre,
String f_suf,
String t_pre,
String t_suf,
boolean convergent,
double stre,
int type,
double delay,
double[][] trans)
Deprecated.
|
double |
connect(String f_pre,
String f_suf,
String t_pre,
String t_suf,
boolean convergent,
double stre,
int type,
double delay,
double[][] proma,
double[][] strma,
int hostId,
boolean periodic)
Makeing connections between from and to layer of neurons, probability connection.
|
double |
connect(String f_pre,
String f_suf,
String t_pre,
String t_suf,
boolean convergent,
double stre,
int type,
double delay,
double[][] trans,
int hostId,
boolean periodic)
Makeing connections between from and to layer of neurons, L connection.
|
double |
connect(String f_pre,
String f_suf,
String t_pre,
String t_suf,
double stre,
int type,
double delay,
double[][] trans,
int hostId)
Makeing connections between from and to layer of neurons, general connection.
|
String |
connectFrom(String id,
PrintStream p)
For debugging, pring out the connections connects from neuron with String id .
|
double |
connectgp(String f_pre,
String f_suf,
String t_pre,
String t_suf,
double stre,
int type,
double delay,
double[][] proma,
double[][] strma,
int hostId)
Makeing connections between from and to layer of neurons, general probability connection.
|
Layer |
getLayer(String prefix,
String suffix) |
int |
getLayersize(String prefix)
Find out the number of layers starting with prefix string
|
String |
getLayerSuffix(String prefix,
int index)
Returns the suffix of the Nth layer with given prefix.
|
int |
getXEdgeLength() |
int |
getXmultiplier(String prefix,
String suffix) |
int |
getYEdgeLength() |
int |
getYmultiplier(String prefix,
String suffix) |
void |
killMaps() |
int |
layerNumNeurons(String prefix,
String suffix)
Find out the number of neurons of a layer, given the layer name
|
void |
mapcells()
Map the cells in linear fashion.
|
void |
neuronIndex(int hostId)
set up the base neuron index for NetHost hostId
|
void |
parseTarget(JpvmInfo info,
SimulatorParser pas)
Set up the target host (binary long type) information through network (JPVM).
|
void |
popScaffold(String f_pre,
String f_suf,
String t_pre,
String t_suf,
boolean convergent,
double stre,
int type,
double delay,
double[][] proma,
double[][] strma,
int hostId,
boolean periodic)
Build up the Scaffold for later buiding up network structure.
|
void |
popScaffold(String fromLayerPrefix,
String fromLayerSuffix,
String toLayerPrefix,
String toLayerSuffix,
boolean convergent,
double strength,
int type,
double delay,
double[][] trans,
int hostId,
boolean periodic)
Build up the Scaffold for later building up network structure.
|
void |
popScaffold(String f_pre,
String f_suf,
String t_pre,
String t_suf,
double stre,
int type,
double delay,
double[][] proma,
double[][] strma,
int hostId)
Build up the Scaffold for later buiding up network structure.
|
void |
popScaffold(String fromLayerPrefix,
String fromLayerSuffix,
String toLayerPrefix,
String toLayerSuffix,
double strength,
int type,
double delay,
double[][] trans,
int hostId)
Build up the Scaffold for later building up network structure.
|
void |
qmapcells()
Deprecated.
|
void |
reSetSeed() |
void |
setSeed(Seed i) |
void |
sortSynapses(int hostId) |
int |
totalNumNeurons()
Compute the total number of neurons
|
public static final int LINEMAP
public static final int ABMAP
public static int sectionsInAxisX
public static int sectionsInAxisY
public Map<String,Integer> prefixSuffixToLayerIndexMap
@Deprecated public String[] celltype
@Deprecated public Map<String,TreeSet<Synapse>>[] branchmaps
public Map<Integer,Map<String,SizeID>> scaffold
public int edgeLengthX
public int edgeLengthY
public int numberOfNeurons
public int[] nodeEndIndices
public int base
public int neuron_end
public int back_idum2
public int back_iy
public int[] back_iv
public int backseed
public int numSYN
public LayerStructure(ModelFactory modelFactory, int nodeCount, int edgeLengthX, int edgeLengthY)
public void neuronIndex(int hostId)
public void addLayer(String pre, String suf, int mult, String type)
pre
- suf
- mult
- type
- public void mapcells()
@Deprecated public void qmapcells()
public void abmapcells_Main(int a, int b)
a
- sections in x axisb
- sections in y axis@Deprecated public int cellmap_slow(String pre, String suf, int x, int y)
@Deprecated public boolean celllayer_test(int index, String pre, String suf)
@Deprecated public int[] celllayer_cordinate(int index, String pre, String suf)
@Deprecated public String celltype_slow(int index)
a
- parts in X dimensionb
- parts in X dimensionhost_id
- public void abmapcells(int a, int b, int host_id)
a
- parts in X dimensionb
- parts in X dimensionhost_id
- public int totalNumNeurons()
public int layerNumNeurons(String prefix, String suffix)
prefix
- stringsuffix
- stringpublic int getXmultiplier(String prefix, String suffix)
public int getYmultiplier(String prefix, String suffix)
public int getLayersize(String prefix)
prefix
- stringpublic String getLayerSuffix(String prefix, int index)
@Deprecated public void connect(String f_pre, String f_suf, String t_pre, String t_suf, boolean convergent, double stre, byte type, double delay, int idum)
public void popScaffold(String fromLayerPrefix, String fromLayerSuffix, String toLayerPrefix, String toLayerSuffix, boolean convergent, double strength, int type, double delay, double[][] trans, int hostId, boolean periodic)
public void popScaffold(String f_pre, String f_suf, String t_pre, String t_suf, boolean convergent, double stre, int type, double delay, double[][] proma, double[][] strma, int hostId, boolean periodic)
f_pre
- f_suf
- t_pre
- t_suf
- convergent
- stre
- type
- delay
- trans
- hostId
- periodic
- public void popScaffold(String fromLayerPrefix, String fromLayerSuffix, String toLayerPrefix, String toLayerSuffix, double strength, int type, double delay, double[][] trans, int hostId)
public void popScaffold(String f_pre, String f_suf, String t_pre, String t_suf, double stre, int type, double delay, double[][] proma, double[][] strma, int hostId)
f_pre
- f_suf
- t_pre
- t_suf
- convergent
- stre
- type
- delay
- trans
- hostId
- periodic
- public void buildStructure(int hostId)
hostId
- public void sortSynapses(int hostId)
public double connect(String f_pre, String f_suf, String t_pre, String t_suf, boolean convergent, double stre, int type, double delay, double[][] trans, int hostId, boolean periodic)
f_pre
- f_suf
- t_pre
- t_suf
- convergent
- stre
- type
- delay
- trans
- hostId
- periodic
- public void reSetSeed()
public double connect(String f_pre, String f_suf, String t_pre, String t_suf, boolean convergent, double stre, int type, double delay, double[][] proma, double[][] strma, int hostId, boolean periodic)
f_pre
- f_suf
- t_pre
- t_suf
- convergent
- stre
- type
- delay
- trans
- hostId
- periodic
- public double connect(String f_pre, String f_suf, String t_pre, String t_suf, double stre, int type, double delay, double[][] trans, int hostId)
f_pre
- f_suf
- t_pre
- t_suf
- convergent
- stre
- type
- delay
- trans
- hostId
- periodic
- public double connectgp(String f_pre, String f_suf, String t_pre, String t_suf, double stre, int type, double delay, double[][] proma, double[][] strma, int hostId)
f_pre
- f_suf
- t_pre
- t_suf
- convergent
- stre
- type
- delay
- trans
- hostId
- periodic
- @Deprecated public double changeConnection(String f_pre, String f_suf, String t_pre, String t_suf, boolean convergent, double stre, int type, double delay, double[][] trans, int hostId, boolean periodic)
@Deprecated public double changeConnection(String f_pre, String f_suf, String t_pre, String t_suf, double stre, int type, double delay, double[][] trans, int hostId)
@Deprecated public double connect(String f_pre, String f_suf, String t_pre, String t_suf, boolean convergent, double stre, int type, double delay, double[][] trans)
public int[] closePoint(int iterx, int itery, String tpre, String tsuf)
iterx
- itery
- tpre
- tsuf
- public String connectFrom(String id, PrintStream p)
Neuron
- stringprint
- stream ppublic void killMaps()
public int getXEdgeLength()
public int getYEdgeLength()
public void parseTarget(JpvmInfo info, SimulatorParser pas) throws jpvmException
info
- pas
- jpvmException