예제 #1
0
        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();
        }
예제 #2
0
 public static void SetReceptorContingency(int idx, double contingency)
 {
     CoreObject.SetReceptorContingency(idx, contingency);
 }
예제 #3
0
 public static void GiveContingency()
 {
     CoreObject.GiveContingency(CoreObject.Field.Energy);
 }