private void AddNeurone(thresholdFunction funzione, int id, TipoNeurone tipo) { NeuroneStruct neurone=new NeuroneStruct(); neurone.inizializza(funzione,id,tipo); return; }
public void inizializza(thresholdFunction _funzione, int _id, TipoNeurone _tipo) { neatId = _id; tipo = _tipo; inputP= new List<double>(); inputF = new List<double>(); assoni = new List<AssoneStruct>(); funzioneSoglia = _funzione; return; }
/// <summary> /// Traduce il genotipo passato per argomento /// </summary> /// <param name="neuroneG">Genotipo da tradurre</param> public NeuroneF(GenotipoRN.NeuroneG neuroneG) { _neatID = neuroneG.neatID; memoria = 0; _tipo = neuroneG.tipo; funzioneSoglia = Threshold.getThresholdFromIndex(neuroneG.thresholdIndex); inputP = new List<double>(); inputF = new List<double>(); assoni = new List<AssoneF>(); return; }
public NeuroneF(thresholdFunction funzione, int id, TipoNeurone tipo) { _neatID = id; _tipo = tipo; memoria = 0; inputP = new List<double>(); inputF = new List<double>(); assoni = new List<AssoneF>(); funzioneSoglia = funzione; return; }
private void AddNeurone(thresholdFunction funzione, int id, TipoNeurone tipo) { NeuroneF neurone = new NeuroneF(funzione, id, tipo); return; }