- Timestamp:
- 03/10/17 08:37:27 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/TSNE/SPtree.cs
r14518 r14742 157 157 // Ignore objects which do not belong in this quad tree 158 158 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); 160 160 if (!boundary.ContainsPoint(point)) return false; 161 161 cumulativeSize++; … … 227 227 public bool IsCorrect() { 228 228 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); 231 230 if (!boundary.ContainsPoint(row)) return false; 232 231 if (isLeaf) return true;
Note: See TracChangeset
for help on using the changeset viewer.