Lines Matching refs:index1
339 const std::vector<int> *const sampledInputYs, const int index0, const int index1) {
345 if (index1 < 0 || index1 > sampledInputSize - 1) {
350 const int x2 = (*sampledInputXs)[index1];
351 const int y2 = (*sampledInputYs)[index1];
623 const int index0, const int index1, const int index2) {
631 if (index1 < 0 || index1 > sampledInputSize - 1) {
637 const float previousDirection = getDirection(sampledInputXs, sampledInputYs, index0, index1);
638 const float nextDirection = getDirection(sampledInputXs, sampledInputYs, index1, index2);
942 // Decreases char probabilities of index0 by checking probabilities of a near point (index1) and
943 // increases char probabilities of index1 by checking probabilities of index0.
946 const int index0, const int index1,
949 ASSERT(0 <= index1 && index1 < sampledInputSize);
951 const float diff = fabsf(static_cast<float>((*lengthCache)[index0] - (*lengthCache)[index1]));
960 hash_map_compat<int, float>::iterator it2 = (*charProbabilities)[index1].find(it->first);
961 if (it2 != (*charProbabilities)[index1].end() && it->second < it2->second) {
968 // Add the probability of the same key nearby index1
971 (*charProbabilities)[index1][NOT_AN_INDEX]
974 (*charProbabilities)[index1][NOT_AN_INDEX] -= probabilityGain;