コード例 #1
0
 protected override void InitializeCells()
 {
     Parallel.For(0, hyperParams.spaceSize, (int i) =>
     {
         cellSpace[i] = new BooleanCell(i).SetFirstState(0) as BooleanCell;
     });
 }
コード例 #2
0
ファイル: BaseExperiment.cs プロジェクト: sindresf/CPPN-CA
        protected override void InitialConditionSetup()
        {
            int mid = hyperParams.spaceSize / 2;

            for (int i = 0; i < hyperParams.spaceSize; i++)
            {
                if (i == mid)
                {
                    cellSpace[i] = new BooleanCell(1);
                }
                else
                {
                    cellSpace[i] = new BooleanCell(0);
                }
            }
        }
コード例 #3
0
ファイル: BooleanRecord.cs プロジェクト: morninn/PetSof
 /**
  * Constructor used when copying a workbook
  *
  * @param nc the number to copy
  */
 protected BooleanRecord(BooleanCell nc)
     : base(Type.BOOLERR, nc)
 {
     value = nc.getValue();
 }
コード例 #4
0
ファイル: Boolean.cs プロジェクト: ferrinsp/kbellfireapp
 /**
  * Constructor used internally by the application when making a writable
  * copy of a spreadsheet that has been read in
  *
  * @param nc the cell to copy
  */
 public Boolean(BooleanCell nc)
     : base(nc)
 {
 }
コード例 #5
0
 /**
  * Constructor used when copying a workbook
  *
  * @param nc the number to copy
  */
 protected BooleanRecord(BooleanCell nc)
     : base(Type.BOOLERR, nc)
 {
     value = nc.getValue();
 }
コード例 #6
0
 /**
  * Constructor used internally by the application when making a writable
  * copy of a spreadsheet that has been read in
  *
  * @param nc the cell to copy
  */
 public Boolean(BooleanCell nc)
     : base(nc)
 {
 }