Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/07/17 14:05:09 (8 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.RealVectorEncoding/3.3/RealVector.cs

    r14186 r14650  
    4141    public RealVector(DoubleArray elements)
    4242      : 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];
    4545    }
    4646
     
    5353      if (length > 0) {
    5454        for (int i = 0; i < length; i++)
    55           array[startIndex + i] = min + delta * random.NextDouble();
     55          historyArray[startIndex + i] = min + delta * random.NextDouble();
    5656        OnReset();
    5757      }
     
    6363          double min = bounds[i % bounds.Rows, 0];
    6464          double max = bounds[i % bounds.Rows, 1];
    65           array[i] = min + (max - min) * random.NextDouble();
     65          historyArray[i] = min + (max - min) * random.NextDouble();
    6666        }
    6767        OnReset();
Note: See TracChangeset for help on using the changeset viewer.