diff --git a/BrainSimulator/MainWindow.xaml.cs b/BrainSimulator/MainWindow.xaml.cs index 05e4426..c9d427c 100644 --- a/BrainSimulator/MainWindow.xaml.cs +++ b/BrainSimulator/MainWindow.xaml.cs @@ -397,7 +397,7 @@ private void MainMenu_MouseEnter(object sender, MouseEventArgs e) if (此神经元数组 != null && !useServers) ThreadCount.Text = 此神经元数组.获取线程数().ToString(); else ThreadCount.Text = ""; - if (此神经元数组 != null) Refractory.Text = 此神经元数组.GetRefractoryDelay().ToString(); + if (此神经元数组 != null) Refractory.Text = 此神经元数组.GetRefractoryDelay获取耐火材料延迟().ToString(); else Refractory.Text = ""; if (currentFileName != "" && diff --git a/BrainSimulator/Module/ModuleBoundary.cs b/BrainSimulator/Module/ModuleBoundary.cs index dfab411..36c69d1 100644 --- a/BrainSimulator/Module/ModuleBoundary.cs +++ b/BrainSimulator/Module/ModuleBoundary.cs @@ -111,7 +111,7 @@ public override void Fire() for (int i = 0; i < source.Width; i++) { int index = source.GetNeuronIndexAt(i, j); - neuronValues[i, j] = MainWindow.此神经元数组.GetNeuronLastCharge(index); + neuronValues[i, j] = MainWindow.此神经元数组.GetNeuronLastCharge获取神经元上一次的脉冲(index); neuronValuesI[i, j] = (int)neuronValues[i, j]; } @@ -165,7 +165,7 @@ public override void Fire() int index = mv.GetNeuronIndexAt(i, j); float lastCharge = boundaryValues[i, j]; if (cornerValues[i, j] != 0) lastCharge = 0.99f; - MainWindow.此神经元数组.SetNeuronLastCharge(index, lastCharge); + MainWindow.此神经元数组.SetNeuronLastCharge设置神经元上一次的脉冲(index, lastCharge); } } //if you want the dlg to update, use the following code whenever any parameter changes diff --git a/BrainSimulator/Module/ModuleBoundarySegments.cs b/BrainSimulator/Module/ModuleBoundarySegments.cs index 8680b3e..6ba3ffc 100644 --- a/BrainSimulator/Module/ModuleBoundarySegments.cs +++ b/BrainSimulator/Module/ModuleBoundarySegments.cs @@ -199,7 +199,7 @@ void FindSegments() for (int i = 0; i < naSource.Width; i++) { int index = naSource.GetNeuronIndexAt(i, j); - float lastCharge = MainWindow.此神经元数组.GetNeuronLastCharge(index); + float lastCharge = MainWindow.此神经元数组.GetNeuronLastCharge获取神经元上一次的脉冲(index); if (lastCharge > 0.1f) { firingPoints.Add(new Point(i, j)); diff --git "a/BrainSimulator/\347\245\236\347\273\217\345\205\203\345\244\204\347\220\206.cs" "b/BrainSimulator/\347\245\236\347\273\217\345\205\203\345\244\204\347\220\206.cs" index cc4e5b7..49f2eb2 100644 --- "a/BrainSimulator/\347\245\236\347\273\217\345\205\203\345\244\204\347\220\206.cs" +++ "b/BrainSimulator/\347\245\236\347\273\217\345\205\203\345\244\204\347\220\206.cs" @@ -35,10 +35,10 @@ public class 神经元处理 : 神经元列表Base else { int i = n.id; - SetNeuronCurrentCharge(i, n.当前更改); - SetNeuronLastCharge(i, n.最后更改); + SetNeuronCurrentCharge设置神经元当前的脉冲(i, n.当前更改); + SetNeuronLastCharge设置神经元上一次的脉冲(i, n.最后更改); 设置神经元标签(i, n.标签); - SetNeuronLeakRate(i, n.leakRate泄露速度); + SetNeuronLeakRate设置神经元释放率(i, n.leakRate泄露速度); 设置神经元模型(i, (int)n.模型字段); SetNeuronAxonDelay(i, n.突触延迟); } @@ -54,11 +54,11 @@ public class 神经元处理 : 神经元列表Base { 神经元 retVal = new 神经元(); retVal.id = i; - retVal.LastCharge = GetNeuronLastCharge(i); + retVal.LastCharge = GetNeuronLastCharge获取神经元上一次的脉冲(i); retVal.是否使用 = 获取神经元是否使用中(i); retVal.标签 = 获取神经元标签(i); retVal.模型字段 = (神经元.模型类型)获取神经元模型(i); - retVal.leakRate泄露速度 = GetNeuronLeakRate(i); + retVal.leakRate泄露速度 = GetNeuronLeakRate获取神经元释放率(i); retVal.突触延迟 = GetNeuronAxonDelay(i); return retVal; } @@ -111,7 +111,7 @@ public class 神经元处理 : 神经元列表Base } public List<突触> 从列表中获取突触(int i) { - return 变换为突触列表(GetSynapsesFrom(i)); + return 变换为突触列表(GetSynapsesFrom获取突触源(i)); } List<突触> 变换为突触列表(byte[] input) { diff --git a/CSEngineTest/MainWindow.xaml.cs b/CSEngineTest/MainWindow.xaml.cs index 79b4fa9..62d173f 100644 --- a/CSEngineTest/MainWindow.xaml.cs +++ b/CSEngineTest/MainWindow.xaml.cs @@ -33,11 +33,11 @@ private void Button_Click(object sender, RoutedEventArgs e) theNeuronArray.设置线程数量(16); threads = theNeuronArray.获取线程数(); - theNeuronArray.SetNeuronCurrentCharge(1, 1.4f); - theNeuronArray.SetNeuronCurrentCharge(2, 0.9f); + theNeuronArray.SetNeuronCurrentCharge设置神经元当前的脉冲(1, 1.4f); + theNeuronArray.SetNeuronCurrentCharge设置神经元当前的脉冲(2, 0.9f); theNeuronArray.Fire(); //should transfer current chargest to last - float a = theNeuronArray.GetNeuronLastCharge(1); - float b = theNeuronArray.GetNeuronLastCharge(2); + float a = theNeuronArray.GetNeuronLastCharge获取神经元上一次的脉冲(1); + float b = theNeuronArray.GetNeuronLastCharge获取神经元上一次的脉冲(2); string s0 = theNeuronArray.获取神经元标签(1); theNeuronArray.设置神经元标签(1, "Fred"); @@ -83,7 +83,7 @@ private void Button_Click(object sender, RoutedEventArgs e) } }); for (int i = 0; i < neuronCount / 100; i++) - theNeuronArray.SetNeuronCurrentCharge(100 * i, 1); + theNeuronArray.SetNeuronCurrentCharge设置神经元当前的脉冲(100 * i, 1); MessageBox.Show("突触和充电完成"); Stopwatch sw = new Stopwatch(); string msg = ""; diff --git a/CSEngineTest/XmlFile.cs b/CSEngineTest/XmlFile.cs index 1012b02..3e4a215 100644 --- a/CSEngineTest/XmlFile.cs +++ b/CSEngineTest/XmlFile.cs @@ -91,11 +91,11 @@ public static bool Load(ref NeuronHandler theNeuronArray, string fileName) if (n != null) { int id = n.Id; - theNeuronArray.SetNeuronCurrentCharge(id, n.CurrentCharge); + theNeuronArray.SetNeuronCurrentCharge设置神经元当前的脉冲(id, n.CurrentCharge); if (n.Label != "") theNeuronArray.设置神经元标签(id, n.Label); if (n.LeakRate != 0.1f) - theNeuronArray.SetNeuronLeakRate(id, n.LeakRate); + theNeuronArray.SetNeuronLeakRate设置神经元释放率(id, n.LeakRate); if (n.Model != modelType.Std) theNeuronArray.设置神经元模型(id, (int)n.Model); foreach (S s in n.Synapses) diff --git "a/NeuronEngineWrapper/\347\245\236\347\273\217\345\205\203\345\274\225\346\223\216\345\214\205\350\243\205\345\231\250.cpp" "b/NeuronEngineWrapper/\347\245\236\347\273\217\345\205\203\345\274\225\346\223\216\345\214\205\350\243\205\345\231\250.cpp" index 4422aa1..2a1419c 100644 --- "a/NeuronEngineWrapper/\347\245\236\347\273\217\345\205\203\345\274\225\346\223\216\345\214\205\350\243\205\345\231\250.cpp" +++ "b/NeuronEngineWrapper/\347\245\236\347\273\217\345\205\203\345\274\225\346\223\216\345\214\205\350\243\205\345\231\250.cpp" @@ -19,120 +19,120 @@ namespace NeuronEngine } ԪбBase::~ԪбBase() { - delete theNeuronArray; + delete theNeuronArrayԪб; } - void ԪбBase::Initialize(int neuronCount) + void ԪбBase::Initialize(int Ԫ) { - if (theNeuronArray != NULL) - delete theNeuronArray; - theNeuronArray = new NeuronEngine::ԪбBase(); - theNeuronArray->Initialize(neuronCount); + if (theNeuronArrayԪб != NULL) + delete theNeuronArrayԪб; + theNeuronArrayԪб = new NeuronEngine::ԪбBase(); + theNeuronArrayԪб->Initialize(Ԫ); } void ԪбBase::Fire() { - theNeuronArray->Fire(); + theNeuronArrayԪб->Fire(); } int ԪбBase::ȡС() { - return theNeuronArray->ȡС(); + return theNeuronArrayԪб->ȡС(); } long long ԪбBase::ȡδ() { - return theNeuronArray->ȡδ(); + return theNeuronArrayԪб->ȡδ(); } void ԪбBase::ôδ(long long i) { - theNeuronArray->ôδ(i); + theNeuronArrayԪб->ôδ(i); } int ԪбBase::ȡԪ() { - return theNeuronArray->ȡ(); + return theNeuronArrayԪб->ȡ(); } void ԪбBase::߳(int theCount) { - theNeuronArray->߳(theCount); + theNeuronArrayԪб->߳(theCount); } int ԪбBase::ȡ߳() { - return theNeuronArray->ȡ߳(); + return theNeuronArrayԪб->ȡ߳(); } void ԪбBase::SetRefractoryDelay(int i) { - theNeuronArray->SetRefractoryDelay(i); + theNeuronArrayԪб->SetRefractoryDelay(i); } - int ԪбBase::GetRefractoryDelay() + int ԪбBase::GetRefractoryDelayȡͻӳ() { - return theNeuronArray->GetRefractoryDelay(); + return theNeuronArrayԪб->GetRefractoryDelay(); } - float ԪбBase::GetNeuronLastCharge(int i) + float ԪбBase::GetNeuronLastChargeȡԪһε(int i) { - ԪBase* n = theNeuronArray->ȡԪ(i); + ԪBase* n = theNeuronArrayԪб->ȡԪ(i); return n->GetLastCharge(); } - void ԪбBase::SetNeuronLastCharge(int i, float value) + void ԪбBase::SetNeuronLastChargeԪһε(int i, float value) { - ԪBase* n = theNeuronArray->ȡԪ(i); + ԪBase* n = theNeuronArrayԪб->ȡԪ(i); n->SetLastCharge(value); } - void ԪбBase::SetNeuronCurrentCharge(int i, float value) + void ԪбBase::SetNeuronCurrentChargeԪǰ(int i, float value) { - ԪBase* n = theNeuronArray->ȡԪ(i); + ԪBase* n = theNeuronArrayԪб->ȡԪ(i); n->SetCurrentCharge(value); } - void ԪбBase::AddToNeuronCurrentCharge(int i, float value) + void ԪбBase::AddToNeuronCurrentChargeԪǰ(int i, float value) { - ԪBase* n = theNeuronArray->ȡԪ(i); + ԪBase* n = theNeuronArrayԪб->ȡԪ(i); n->AddToCurrentValue(value); } - float ԪбBase::GetNeuronLeakRate(int i) + float ԪбBase::GetNeuronLeakRateȡԪͷ(int i) { - ԪBase* n = theNeuronArray->ȡԪ(i); + ԪBase* n = theNeuronArrayԪб->ȡԪ(i); return n->ȡй¶(); } - void ԪбBase::SetNeuronLeakRate(int i, float value) + void ԪбBase::SetNeuronLeakRateԪͷ(int i, float value) { - ԪBase* n = theNeuronArray->ȡԪ(i); + ԪBase* n = theNeuronArrayԪб->ȡԪ(i); n->й¶(value); } int ԪбBase::GetNeuronAxonDelay(int i) { - ԪBase* n = theNeuronArray->ȡԪ(i); + ԪBase* n = theNeuronArrayԪб->ȡԪ(i); return n->GetAxonDelay(); } void ԪбBase::SetNeuronAxonDelay(int i, int value) { - ԪBase* n = theNeuronArray->ȡԪ(i); + ԪBase* n = theNeuronArrayԪб->ȡԪ(i); n->SetAxonDelay(value); } long long ԪбBase::GetNeuronLastFired(int i) { - ԪBase* n = theNeuronArray->ȡԪ(i); + ԪBase* n = theNeuronArrayԪб->ȡԪ(i); return n->GetLastFired(); } int ԪбBase::ȡԪģ(int i) { - ԪBase* n = theNeuronArray->ȡԪ(i); + ԪBase* n = theNeuronArrayԪб->ȡԪ(i); return (int)n->ȡģ(); } void ԪбBase::Ԫģ(int i, int model) { - ԪBase* n = theNeuronArray->ȡԪ(i); + ԪBase* n = theNeuronArrayԪб->ȡԪ(i); n->ģ((ԪBase::modelType) model); } bool ԪбBase::ȡԪǷʹ(int i) { - ԪBase* n = theNeuronArray->ȡԪ(i); + ԪBase* n = theNeuronArrayԪб->ȡԪ(i); return n->GetInUse(); } void ԪбBase::Ԫǩ(int i, String^ newLabel) { const wchar_t* chars = (const wchar_t*)(Marshal::StringToHGlobalAuto(newLabel)).ToPointer(); - theNeuronArray->ȡԪ(i)->ñǩ(chars); + theNeuronArrayԪб->ȡԪ(i)->ñǩ(chars); Marshal::FreeHGlobal(IntPtr((void*)chars)); } String^ ԪбBase::ȡԪǩ(int i) { - wchar_t* labelChars = theNeuronArray->ȡԪ(i)->ȡǩ(); + wchar_t* labelChars = theNeuronArrayԪб->ȡԪ(i)->ȡǩ(); if (labelChars != NULL) { std::wstring label(labelChars); @@ -145,20 +145,20 @@ namespace NeuronEngine return str; } } - String^ ԪбBase::GetRemoteFiring() + String^ ԪбBase::GetRemoteFiringȡԶ̼() { - std::string remoteFiring = theNeuronArray->GetRemoteFiringString(); + std::string remoteFiring = theNeuronArrayԪб->GetRemoteFiringString(); String^ str = gcnew String(remoteFiring.c_str()); return str; } - cli::array^ ԪбBase::GetRemoteFiringSynapses() + cli::array^ ԪбBase::GetRemoteFiringSynapsesȡԶ̼ͻ() { std::vector<ͻBase> tempVec; - ͻBase s1 = theNeuronArray->GetRemoteFiringSynapse(); + ͻBase s1 = theNeuronArrayԪб->GetRemoteFiringSynapse(); while (s1.ȡĿԪ() != NULL) { tempVec.push_back(s1); - s1 = theNeuronArray->GetRemoteFiringSynapse(); + s1 = theNeuronArrayԪб->GetRemoteFiringSynapse(); } return ReturnArray(tempVec); } @@ -166,53 +166,53 @@ namespace NeuronEngine void ԪбBase::ͻ(int src, int dest, float weight, int model, bool noBackPtr) { if (src < 0)return; - ԪBase* n = theNeuronArray->ȡԪ(src); + ԪBase* n = theNeuronArrayԪб->ȡԪ(src); if (dest < 0) n->ͻ((ԪBase*)(long long)dest, weight, (ͻBase::modelType) model, noBackPtr); else - n->ͻ(theNeuronArray->ȡԪ(dest), weight, (ͻBase::modelType)model, noBackPtr); + n->ͻ(theNeuronArrayԪб->ȡԪ(dest), weight, (ͻBase::modelType)model, noBackPtr); } void ԪбBase::ͻ(int src, int dest, float weight, int model) { if (dest < 0)return; - ԪBase* n = theNeuronArray->ȡԪ(dest); + ԪBase* n = theNeuronArrayԪб->ȡԪ(dest); if (src < 0) n->AddSynapseFrom((ԪBase*)(long long)src, weight, (ͻBase::modelType)model); else - n->AddSynapseFrom(theNeuronArray->ȡԪ(src), weight, (ͻBase::modelType)model); + n->AddSynapseFrom(theNeuronArrayԪб->ȡԪ(src), weight, (ͻBase::modelType)model); } void ԪбBase::ɾͻ(int src, int dest) { if (src < 0) return; - ԪBase* n = theNeuronArray->ȡԪ(src); + ԪBase* n = theNeuronArrayԪб->ȡԪ(src); if (dest < 0) n->ɾͻ((ԪBase*)(long long)dest); else - n->ɾͻ(theNeuronArray->ȡԪ(dest)); + n->ɾͻ(theNeuronArrayԪб->ȡԪ(dest)); } void ԪбBase::ɾͻ(int src, int dest) { if (dest < 0)return; - ԪBase* n = theNeuronArray->ȡԪ(dest); + ԪBase* n = theNeuronArrayԪб->ȡԪ(dest); if (src < 0) n->ɾͻ((ԪBase*)(long long)src); else - n->ɾͻ(theNeuronArray->ȡԪ(src)); + n->ɾͻ(theNeuronArrayԪб->ȡԪ(src)); } cli::array^ ԪбBase::ȡͻ(int src) { - ԪBase* n = theNeuronArray->ȡԪ(src); + ԪBase* n = theNeuronArrayԪб->ȡԪ(src); n->GetLock(); std::vector<ͻBase> tempVec = n->ȡͻ(); n->ClearLock(); return ReturnArray(tempVec); } - cli::array^ ԪбBase::GetSynapsesFrom(int src) + cli::array^ ԪбBase::GetSynapsesFromȡͻԴ(int src) { - ԪBase* n = theNeuronArray->ȡԪ(src); + ԪBase* n = theNeuronArrayԪб->ȡԪ(src); n->GetLock(); std::vector<ͻBase> tempVec = n->GetSynapsesFrom(); n->ClearLock(); @@ -257,7 +257,7 @@ namespace NeuronEngine }; cli::array^ ԪбBase::ȡԪ(int src) { - ԪBase* n = theNeuronArray->ȡԪ(src); + ԪBase* n = theNeuronArrayԪб->ȡԪ(src); const int byteCount = sizeof(Neuron); cli::array^ tempArr = gcnew cli::array(byteCount); Neuron n1; @@ -279,11 +279,11 @@ namespace NeuronEngine } long long ԪбBase::ȡͻ() { - return theNeuronArray->GetTotalSynapseCount(); + return theNeuronArrayԪб->GetTotalSynapseCount(); } long ԪбBase::ȡʹеԪ() { - return theNeuronArray->ȡʹԪ(); + return theNeuronArrayԪб->ȡʹԪ(); } } } \ No newline at end of file diff --git "a/NeuronEngineWrapper/\347\245\236\347\273\217\345\205\203\345\274\225\346\223\216\345\214\205\350\243\205\345\231\250.h" "b/NeuronEngineWrapper/\347\245\236\347\273\217\345\205\203\345\274\225\346\223\216\345\214\205\350\243\205\345\231\250.h" index 620d4a6..a322c2a 100644 --- "a/NeuronEngineWrapper/\347\245\236\347\273\217\345\205\203\345\274\225\346\223\216\345\214\205\350\243\205\345\231\250.h" +++ "b/NeuronEngineWrapper/\347\245\236\347\273\217\345\205\203\345\274\225\346\223\216\345\214\205\350\243\205\345\231\250.h" @@ -27,13 +27,13 @@ namespace NeuronEngine public: ԪбBase(); ~ԪбBase(); - void Initialize(int numberOfNeurons); + void Initialize(int Ԫ); //壬ͻ void Fire(); int ȡС(); int ȡ߳(); void ߳(int i); - int GetRefractoryDelay(); + int GetRefractoryDelayȡͻӳ(); void SetRefractoryDelay(int i); long long ȡδ(); void ôδ(long long i); @@ -42,26 +42,26 @@ namespace NeuronEngine long ȡʹеԪ(); cli::array^ ȡԪ(int src); - float GetNeuronLastCharge(int i); - void SetNeuronLastCharge(int i, float value); - void SetNeuronCurrentCharge(int i, float value); - void AddToNeuronCurrentCharge(int i, float value); + float GetNeuronLastChargeȡԪһε(int i); + void SetNeuronLastChargeԪһε(int i, float value); + void SetNeuronCurrentChargeԪǰ(int i, float value); + void AddToNeuronCurrentChargeԪǰ(int i, float value); bool ȡԪǷʹ(int i); System::String^ ȡԪǩ(int i); - System::String^ GetRemoteFiring(); - cli::array^ GetRemoteFiringSynapses(); + System::String^ GetRemoteFiringȡԶ̼(); + cli::array^ GetRemoteFiringSynapsesȡԶ̼ͻ(); - void Ԫǩ(int i, System::String^ newLabel); + void Ԫǩ(int i, System::String^ ±ǩ); int ȡԪģ(int i); void Ԫģ(int i, int model); - float GetNeuronLeakRate(int i); - void SetNeuronLeakRate(int i, float value); + float GetNeuronLeakRateȡԪͷ(int i); + void SetNeuronLeakRateԪͷ(int i, float value); int GetNeuronAxonDelay(int i); void SetNeuronAxonDelay(int i, int value); long long GetNeuronLastFired(int i); cli::array^ ȡͻ(int src); - cli::array^ GetSynapsesFrom(int src); + cli::array^ GetSynapsesFromȡͻԴ(int src); void ͻ(int src, int dest, float weight, int model, bool noBackPtr); void ͻ(int src, int dest, float weight, int model); @@ -70,7 +70,7 @@ namespace NeuronEngine private: // Pointer to our implementation - NeuronEngine::ԪбBase* theNeuronArray = NULL; + NeuronEngine::ԪбBase* theNeuronArrayԪб = NULL; cli::array^ ReturnArray(std::vector<ͻBase> synapses); }; } diff --git a/NeuronServer/Program.cs b/NeuronServer/Program.cs index e0cca74..4595572 100644 --- a/NeuronServer/Program.cs +++ b/NeuronServer/Program.cs @@ -178,7 +178,7 @@ static void ProcessIncomingMessages(string message) Task.Run(() => { GetSystemTimePreciseAsFileTime(out long start); - byte[] xx = theNeuronArray.GetRemoteFiringSynapses(); + byte[] xx = theNeuronArray.GetRemoteFiringSynapses获取远程激活突触(); List synapses = ConvertToSynapseList(xx); List[] synapsesForServer = new List[serverList.Count]; for (int j = 0; j < synapsesForServer.Length; j++) synapsesForServer[j] = new List(); @@ -229,7 +229,7 @@ static void ProcessIncomingMessages(string message) string retVal = "Neuron "; retVal += neuronID + " "; retVal += theNeuronArray.获取神经元模型(neuronID) + " "; - retVal += theNeuronArray.GetNeuronLastCharge(neuronID) + " "; + retVal += theNeuronArray.GetNeuronLastCharge获取神经元上一次的脉冲(neuronID) + " "; retVal += theNeuronArray.GetNeuronLeakRate(neuronID) + " "; retVal += theNeuronArray.GetNeuronAxonDelay(neuronID) + " "; retVal += theNeuronArray.获取神经元是否使用中(localID); @@ -254,7 +254,7 @@ static void ProcessIncomingMessages(string message) retVal += neuronID + " "; int localID = neuronID - firstNeuron; retVal += theNeuronArray.获取神经元模型(localID) + " "; - retVal += theNeuronArray.GetNeuronLastCharge(localID) + " "; + retVal += theNeuronArray.GetNeuronLastCharge获取神经元上一次的脉冲(localID) + " "; retVal += theNeuronArray.GetNeuronLeakRate(localID) + " "; retVal += theNeuronArray.GetNeuronAxonDelay(localID) + " "; retVal += theNeuronArray.获取神经元是否使用中(localID) + " "; @@ -275,9 +275,9 @@ static void ProcessIncomingMessages(string message) float.TryParse(commands[5], out float leakRate); int.TryParse(commands[6], out int axonDelay); theNeuronArray.设置神经元模型(localID, neuronModel); - theNeuronArray.SetNeuronCurrentCharge(localID, currentCharge); - theNeuronArray.SetNeuronLastCharge(localID, lastCharge); - theNeuronArray.SetNeuronLeakRate(localID, leakRate); + theNeuronArray.SetNeuronCurrentCharge设置神经元当前的脉冲(localID, currentCharge); + theNeuronArray.SetNeuronLastCharge设置神经元上一次的脉冲(localID, lastCharge); + theNeuronArray.SetNeuronLeakRate设置神经元释放率(localID, leakRate); theNeuronArray.SetNeuronAxonDelay(localID, axonDelay); } break;