Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/10/17 08:37:27 (7 years ago)
Author:
bwerth
Message:

#2700 fixed displaying of randomly generated seed and some minor code simplifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE/SPtree.cs

    r14518 r14742  
    157157      // Ignore objects which do not belong in this quad tree
    158158      var point = new double[dimension];
    159       Buffer.BlockCopy(Data, (int)(sizeof(double) * dimension * newIndex), point, 0, (int)(sizeof(double) * dimension));
     159      Buffer.BlockCopy(Data, sizeof(double) * dimension * newIndex, point, 0, sizeof(double) * dimension);
    160160      if (!boundary.ContainsPoint(point)) return false;
    161161      cumulativeSize++;
     
    227227    public bool IsCorrect() {
    228228      var row = new double[dimension];
    229       for (var n = 0; n < size; n++)
    230         Buffer.BlockCopy(Data, (int)(sizeof(double) * dimension * n), row, 0, (int)(sizeof(double) * dimension));
     229      for (var n = 0; n < size; n++) Buffer.BlockCopy(Data, sizeof(double) * dimension * n, row, 0, sizeof(double) * dimension);
    231230      if (!boundary.ContainsPoint(row)) return false;
    232231      if (isLeaf) return true;
Note: See TracChangeset for help on using the changeset viewer.