Esempio n. 1
0
 public static Izhikevich9pModelMC readModel(String exp, int trial) {
   File newFile = new File("output/" + exp + "/job." + trial + ".Full");
   if (!(newFile).exists()) {
     System.out.println("file not found! skipping.." + "file: " + newFile.getAbsolutePath());
     return null;
   }
   double[] parms =
       ECStatOutputReader.readBestSolution("output/" + exp + "/job." + trial + ".Full", 50);
   Izhikevich9pModelMC model = getRightInstanceForModel();
   EAGenes genes = new EAGenes(parms, iso_comp);
   model.setK(genes.getK());
   model.setA(genes.getA());
   model.setB(genes.getB());
   model.setD(genes.getD());
   model.setcM(genes.getCM());
   model.setvR(genes.getVR());
   model.setvT(genes.getVT());
   model.setvMin(genes.getVMIN());
   model.setvPeak(genes.getVPEAK());
   model.setG(genes.getG());
   model.setP(genes.getP());
   double[] I = genes.getI();
   // System.out.println(I[0]);
   model.setInputParameters(new double[] {I[0]}, 0d, 0d);
   return model;
 }
Esempio n. 2
0
 public static double[] readBestParms(String exp, int best_trial) {
   double[] parms =
       ECStatOutputReader.readBestSolution(
           "output/" + exp + "/job." + best_trial + ".Full",
           50); // "C:\\Users\\Siva\\TIME\\ECJ Izhikevich\\output\\I2, 3 - BEST so
                // far\\job."+best_trial+".Full",6,11);//
   return parms;
 }