Changeset 14650 for branches/PersistentDataStructures/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVector.cs
- Timestamp:
- 02/07/17 14:05:09 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistentDataStructures/HeuristicLab.Encodings.BinaryVectorEncoding/3.3/BinaryVector.cs
r14186 r14650 41 41 public BinaryVector(BoolArray elements) 42 42 : this(elements.Length) { 43 for (int i = 0; i < array.Length; i++)44 array[i] = elements[i];43 for (int i = 0; i < historyArray.Length; i++) 44 historyArray[i] = elements[i]; 45 45 } 46 46 … … 52 52 if (length > 0) { 53 53 for (int i = 0; i < length; i++) 54 array[startIndex + i] = random.Next(2) == 0;54 historyArray[startIndex + i] = random.Next(2) == 0; 55 55 OnReset(); 56 56 }
Note: See TracChangeset
for help on using the changeset viewer.