Searched refs:max_k (Results 1 – 11 of 11) sorted by relevance
366 int max_k = 0; in kmeans() local369 if( counters[max_k] < counters[k1] ) in kmeans()370 max_k = k1; in kmeans()376 float* old_center = centers.ptr<float>(max_k); in kmeans()378 float scale = 1.f/counters[max_k]; in kmeans()384 if( labels[i] != max_k ) in kmeans()396 counters[max_k]--; in kmeans()
201 const std::int32_t max_k = 512; in main() local203 std::uint8_t* left = new std::uint8_t[max_m * max_k]; in main()204 std::uint8_t* right = new std::uint8_t[max_n * max_k]; in main()216 for (int k = min_k; k < max_k; k += 13) { in main()226 for (int k = min_k; k < max_k; k += 13) { in main()
80 max_k = 0; in clear()84 int CvKNearest::get_max_k() const { return max_k; } in get_max_k()127 max_k = _max_k; in train()338 if( k < 1 || k > max_k ) in find_nearest()
2275 int max_k = -1; in calc_node_value() local2325 max_k = k; in calc_node_value()2329 node->class_idx = max_k; in calc_node_value()2331 data->cat_ofs->data.i[data->cat_var_count] + max_k]; in calc_node_value()2337 max_val = -1; max_k = -1; in calc_node_value()2350 max_k = k; in calc_node_value()
1554 int k, max_k = 0; in validate_test_results() local1569 max_k = 1; in validate_test_results()1570 if( fabs(line0[dims-1]) > fabs(line0[max_k]) ) in validate_test_results()1571 max_k = dims-1; in validate_test_results()1572 if( line0[max_k] < 0 ) in validate_test_results()1575 if( line[max_k] < 0 ) in validate_test_results()1599 t = (line[max_k+dims] - line0[max_k+dims])/line0[max_k]; in validate_test_results()
771 if ( k > dfa.max_k ) { // track max k for entire DFA in setLookaheadDepth()772 dfa.max_k = k; in setLookaheadDepth()
113 protected int max_k = -1; field in DFA
495 int max_k = -1; in calcValue() local533 max_k = k; in calcValue()537 node->class_idx = max_k; in calcValue()538 node->value = classLabels[max_k]; in calcValue()544 max_val = -1; max_k = -1; in calcValue()556 max_k = k; in calcValue()
243 const CvMat* sampleIdx=0, bool isRegression=false, int max_k=32 );253 const cv::Mat& sampleIdx=cv::Mat(), bool isRegression=false, int max_k=32 );280 int max_k, var_count; member in CvKNearest
2783 int max_k = -1; in calc_node_value() local2833 max_k = k; in calc_node_value()2837 node->class_idx = max_k; in calc_node_value()2839 data->cat_ofs->data.i[data->cat_var_count] + max_k]; in calc_node_value()2845 max_val = -1; max_k = -1; in calc_node_value()2858 max_k = k; in calc_node_value()
283 const CvMat* _sample_idx=0, bool _is_regression=false, int max_k=32 );308 int max_k, var_count; variable