public void updateCategories(ConSelFAM.NET.F2Neuron f2Neuron) { for (int i = 0; i < categories.Count; i++) { ((MapFieldCategory)categories[i]).addConnection(f2Neuron); } }
public MapFieldConnection(MapFieldCategory category, ConSelFAM.NET.F2Neuron f2Neuron, int weight) { this.category = category; this.f2Neuron = f2Neuron; // this.f2Neuron.addMapFieldConnection(this); this.f2Neuron.setMapFieldConnection(this); this.weight = weight; }
public void updateCategories(int exceptThisCategory, ConSelFAM.NET.F2Neuron f2Neuron) { for (int i = 0; i < categories.Count; i++) { if (((MapFieldCategory)categories[i]).getCode() != exceptThisCategory) { ((MapFieldCategory)categories[i]).addConnection(f2Neuron); } } }
public void associate(int categoryCode, ConSelFAM.NET.F2Neuron f2Neuron) { ArrayList mapFieldConnections = f2Neuron.getMapFieldConnections(); IEnumerator mapFieldConnEnum = mapFieldConnections.GetEnumerator(); while (mapFieldConnEnum.MoveNext()) { MapFieldConnection conn = (MapFieldConnection)mapFieldConnEnum.Current; if (conn.getCategory().getCode() == categoryCode) { conn.setWeight(1.0); } } }
public void addConnection(ConSelFAM.NET.F2Neuron f2Neuron) { connections.Add(new MapFieldConnection(this, f2Neuron, 1)); }