Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/07/17 14:05:09 (7 years ago)
Author:
epitzer
Message:

#2727 completely replace basic array with array mapped trie in ValueTypeArray and descendants

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PersistentDataStructures/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVector.cs

    r14186 r14650  
    4242    public IntegerVector(IntArray elements)
    4343      : 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];
    4646    }
    4747
     
    5454        int numbers = (int)Math.Floor((max - min) / (double)step);
    5555        for (int i = startIndex; i < startIndex + length; i++) {
    56           array[i] = random.Next(numbers) * step + min;
     56          historyArray[i] = random.Next(numbers) * step + min;
    5757        }
    5858        OnReset();
     
    6565          if (bounds.Columns > 2) step = bounds[i % bounds.Rows, 2];
    6666          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;
    6868        }
    6969        OnReset();
Note: See TracChangeset for help on using the changeset viewer.