Searched refs:cost (Results 1 - 10 of 10) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/typing/
H A Dtyping_weighting.h42 float cost = 0.0f; local
44 cost += ScoringParams::HAS_MULTI_WORD_TERMINAL_COST;
47 cost += ScoringParams::HAS_PROXIMITY_TERMINAL_COST;
50 cost += ScoringParams::HAS_EDIT_CORRECTION_TERMINAL_COST;
52 return cost;
61 float cost = 0.0f; local
63 cost = 0.0f;
65 cost = ScoringParams::INTENTIONAL_OMISSION_COST;
67 cost = ScoringParams::OMISSION_COST_FIRST_CHAR;
69 cost
87 float cost = isProximity ? (isFirstChar ? ScoringParams::FIRST_CHAR_PROXIMITY_COST local
142 float cost = (singleChar ? ScoringParams::INSERTION_COST_FIRST_CHAR : 0.0f); local
155 const float cost = ScoringParams::SPACE_OMISSION_COST; local
173 const float cost = firstCompletion ? ScoringParams::COST_FIRST_COMPLETION local
209 const float cost = ScoringParams::SPACE_SUBSTITUTION_COST * distanceToSpaceKey; local
[all...]
/packages/apps/Camera/jni/feature_stab/db_vlvm/
H A Ddb_robust.h43 double cost; member in struct:db_stat_struct
H A Ddb_image_homography.cpp181 double cost,best_cost; local
214 cost=db_SquaredReprojectionErrorHomography(y,hyp_point,x3);
216 if(!done || cost<best_cost)
219 best_cost=cost;
H A Ddb_rob_image_homography.cpp97 stat->cost=db_RobImageHomography_Cost(H,point_count,x_i,xp_i,one_over_scale2);
104 stat->gric=stat->cost+stat->lambda1*stat->model_dimension*((double)stat->nr_points)+stat->lambda2*((double)stat->nr_parameters);
111 /*Compute min_Jtf and upper right of JtJ. Return cost.*/
185 /*Add square-sum to cost*/
192 /*Compute min_Jtf and upper right of JtJ. Return cost*/
219 /*Add square-sum to cost*/
230 double lambda,cost,current_cost; local
253 cost=db_RobImageHomography_Cost(H_p_dx,point_count,x_i,xp_i,one_over_scale2);
256 if(cost<current_cost)
259 if(current_cost-cost<current_cos
572 double lambda,cost,current_cost; local
[all...]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
H A Ddb_robust.h43 double cost; member in struct:db_stat_struct
H A Ddb_image_homography.cpp181 double cost,best_cost; local
214 cost=db_SquaredReprojectionErrorHomography(y,hyp_point,x3);
216 if(!done || cost<best_cost)
219 best_cost=cost;
H A Ddb_rob_image_homography.cpp97 stat->cost=db_RobImageHomography_Cost(H,point_count,x_i,xp_i,one_over_scale2);
104 stat->gric=stat->cost+stat->lambda1*stat->model_dimension*((double)stat->nr_points)+stat->lambda2*((double)stat->nr_parameters);
111 /*Compute min_Jtf and upper right of JtJ. Return cost.*/
185 /*Add square-sum to cost*/
192 /*Compute min_Jtf and upper right of JtJ. Return cost*/
219 /*Add square-sum to cost*/
230 double lambda,cost,current_cost; local
253 cost=db_RobImageHomography_Cost(H_p_dx,point_count,x_i,xp_i,one_over_scale2);
256 if(cost<current_cost)
259 if(current_cost-cost<current_cos
572 double lambda,cost,current_cost; local
[all...]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
H A Ddic_node_utils.cpp67 * Computes the combined bigram / unigram cost for the given dicNode.
83 const float cost = static_cast<float>(MAX_PROBABILITY - wordAttributes.getProbability()) local
85 return cost;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
H A DLevenshteinDistance.java75 int cost = sourceToken.prefixOf(targetToken) ? 0 : 1;
87 if (d + cost < distance) {
88 distance = d + cost;
89 type = cost == 0 ? EDIT_UNCHANGED : EDIT_REPLACE;
/packages/apps/Messaging/build/gcheckstyle/
H A Dgoogle-style-checker_deploy.jarMETA-INF/ META-INF/MANIFEST.MF build-data.properties com/ com/google/ com/google/ ...

Completed in 224 milliseconds