- Timestamp:
- 02/07/17 14:05:09 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistentDataStructures/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVector.cs
r14186 r14650 42 42 public IntegerVector(IntArray elements) 43 43 : this(elements.Length) { 44 for (int i = 0; i < array.Length; i++)45 array[i] = elements[i];44 for (int i = 0; i < historyArray.Length; i++) 45 historyArray[i] = elements[i]; 46 46 } 47 47 … … 54 54 int numbers = (int)Math.Floor((max - min) / (double)step); 55 55 for (int i = startIndex; i < startIndex + length; i++) { 56 array[i] = random.Next(numbers) * step + min;56 historyArray[i] = random.Next(numbers) * step + min; 57 57 } 58 58 OnReset(); … … 65 65 if (bounds.Columns > 2) step = bounds[i % bounds.Rows, 2]; 66 66 int numbers = (int)Math.Floor((max - min) / (double)step); 67 array[i] = random.Next(numbers) * step + min;67 historyArray[i] = random.Next(numbers) * step + min; 68 68 } 69 69 OnReset();
Note: See TracChangeset
for help on using the changeset viewer.