Searched refs:probs (Results 1 – 2 of 2) sorted by relevance
105 final int[] probs = context.getResources().getIntArray(R.array.food_new_cat_prob); in triggerFoodResponse() local107 final float new_cat_prob = (float) ((food < probs.length) in triggerFoodResponse()108 ? probs[food] in triggerFoodResponse()
81 private static double[] buildCdf(double... probs) { in buildCdf() argument82 if (probs.length == 0) { in buildCdf()85 double[] cdf = new double[probs.length]; in buildCdf()88 for (int i = 0; i < probs.length; ++i) { in buildCdf()89 sum += probs[i]; in buildCdf()