Searched refs:newCost (Results 1 – 1 of 1) sorted by relevance
273 double newCost = costs[j] + costmodel(in[i], 0, costcontext); in GetBestLengths() local274 assert(newCost >= 0); in GetBestLengths()275 if (newCost < costs[j + 1]) { in GetBestLengths()276 costs[j + 1] = newCost; in GetBestLengths()282 double newCost; in GetBestLengths() local288 newCost = costs[j] + costmodel(k, sublen[k], costcontext); in GetBestLengths()289 assert(newCost >= 0); in GetBestLengths()290 if (newCost < costs[j + k]) { in GetBestLengths()292 costs[j + k] = newCost; in GetBestLengths()