public static void Initialize() { Components.State.SetAssembly(System.Reflection.Assembly.GetExecutingAssembly()); Components.State.AddSharedSourceGroup("Connectome.Gpgpu.GpuSource.Shared"); Components.State.AddSourceGroup("Connectome.Gpgpu.Function"); Components.State.Initialize(); CoreObject.Field = new Connectome.Field(new Calculation.InitializeNeuron(CoreObject.NeuronCount, CoreObject.FieldArea, CoreObject.AxsonLengthDefault)); CoreObject.CreateReceptor(); foreach (var item in CoreObject.Receptor) { CoreObject.Field.AddReceptor(item); } foreach (var item in CoreObject.Signal) { CoreObject.Field.SetSignalLocation(item, CoreObject.AxsonLengthDefault); } CoreObject.Field.Confirm(); }
public static void SetReceptorContingency(int idx, double contingency) { CoreObject.SetReceptorContingency(idx, contingency); }
public static void GiveContingency() { CoreObject.GiveContingency(CoreObject.Field.Energy); }