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