Home
last modified time | relevance | path

Searched refs:dataset_ (Results 1 – 6 of 6) sorted by relevance

/external/opencv3/modules/flann/include/opencv2/flann/
Dlinear_index.h59 dataset_(inputData), index_params_(params), distance_(d) in dataset_() function
74 return dataset_.rows; in size()
79 return dataset_.cols; in veclen()
108 ElementType* data = dataset_.data; in findNeighbors()
109 for (size_t i = 0; i < dataset_.rows; ++i, data += dataset_.cols) { in findNeighbors()
110 DistanceType dist = distance_(data, vec, dataset_.cols); in findNeighbors()
122 const Matrix<ElementType> dataset_;
Dkdtree_single_index.h86 dataset_(inputData), index_params_(params), distance_(d) in dataset_() function
88 size_ = dataset_.rows; in dataset_()
89 dim_ = dataset_.cols; in dataset_()
126 data_[i][j] = dataset_[vind_[i]][j]; in buildIndex()
131 data_ = dataset_; in buildIndex()
168 data_ = dataset_; in loadIndex()
200 …return (int)(pool_.usedMemory+pool_.wastedMemory+dataset_.rows*sizeof(int)); // pool memory and v… in usedMemory()
318 bbox[i].low = (DistanceType)dataset_[0][i]; in computeBoundingBox()
319 bbox[i].high = (DistanceType)dataset_[0][i]; in computeBoundingBox()
321 for (size_t k=1; k<dataset_.rows; ++k) { in computeBoundingBox()
[all …]
Dkmeans_index.h126 … DistanceType sq = distance_(dataset_[centers[index]], dataset_[centers[j]], dataset_.cols); in chooseCentersRandom()
163 … DistanceType dist = distance_(dataset_[centers[0]],dataset_[indices[j]],dataset_.cols); in chooseCentersGonzales()
165 … DistanceType tmp_dist = distance_(dataset_[centers[i]],dataset_[indices[j]],dataset_.cols); in chooseCentersGonzales()
212 … closestDistSq[i] = distance_(dataset_[indices[i]], dataset_[indices[index]], dataset_.cols); in chooseCentersKMeanspp()
240 … DistanceType dist = distance_(dataset_[indices[i]], dataset_[indices[index]], dataset_.cols); in chooseCentersKMeanspp()
255 …DistanceType dist = distance_(dataset_[indices[i]], dataset_[indices[bestNewIndex]], dataset_.cols… in chooseCentersKMeanspp()
348 : dataset_(inputData), index_params_(params), root_(NULL), indices_(NULL), distance_(d) in dataset_() function
352 size_ = dataset_.rows; in dataset_()
353 veclen_ = dataset_.cols; in dataset_()
677 ElementType* vec = dataset_[indices[i]]; in computeNodeStatistics()
[all …]
Dlsh_index.h91 dataset_(input_data), index_params_(params), distance_(d) in dataset_() function
99 feature_size_ = (unsigned)dataset_.cols; in dataset_()
118 table.add(dataset_); in buildIndex()
133 save_value(stream, dataset_); in saveIndex()
141 load_value(stream, dataset_); in loadIndex()
156 return dataset_.rows; in size()
173 return (int)(dataset_.rows * sizeof(int)); in usedMemory()
288 hamming_distance = distance_(vec, dataset_[*training_index], dataset_.cols); in getNeighbors()
327 hamming_distance = distance_(vec, dataset_[*training_index], dataset_.cols); in getNeighbors()
360 … hamming_distance = distance_(vec, dataset_[*training_index], (int)dataset_.cols); in getNeighbors()
[all …]
Dkdtree_index.h86 dataset_(inputData), index_params_(params), distance_(d) in dataset_() function
88 size_ = dataset_.rows; in dataset_()
89 veclen_ = dataset_.cols; in dataset_()
187 …return int(pool_.usedMemory+pool_.wastedMemory+dataset_.rows*sizeof(int)); // pool memory and vin… in usedMemory()
316 ElementType* v = dataset_[ind[j]]; in meanSplit()
327 ElementType* v = dataset_[ind[j]]; in meanSplit()
399 while (left<=right && dataset_[ind[left]][cutfeat]<cutval) ++left; in planeSplit()
400 while (left<=right && dataset_[ind[right]][cutfeat]>=cutval) --right; in planeSplit()
407 while (left<=right && dataset_[ind[left]][cutfeat]<=cutval) ++left; in planeSplit()
408 while (left<=right && dataset_[ind[right]][cutfeat]>cutval) --right; in planeSplit()
[all …]
Dautotuned_index.h77 dataset_(inputData), distance_(d) in dataset_() function
110 bestIndex_ = create_index_by_type(dataset_, bestParams_, distance_); in buildIndex()
141 bestIndex_ = create_index_by_type<Distance>(dataset_, params, distance_); in loadIndex()
415 int sampleSize = int(sample_fraction_ * dataset_.rows); in estimateBuildParams()
418 … size: %d, sampleSize: %d, testSampleSize: %d, target precision: %g\n", dataset_.rows, sampleSize,… in estimateBuildParams()
428 sampledDataset_ = random_sample(dataset_, sampleSize); in estimateBuildParams()
498 int samples = (int)std::min(dataset_.rows / 10, SAMPLE_COUNT); in estimateSearchParams()
500 Matrix<ElementType> testDataset = random_sample(dataset_, samples); in estimateSearchParams()
508 compute_ground_truth<Distance>(dataset_, testDataset, gt_matches, 1, distance_); in estimateSearchParams()
525 …searchTime = test_index_precision(*kmeans, dataset_, testDataset, gt_matches, target_precision_, c… in estimateSearchParams()
[all …]