Lines Matching refs:midpoint
969 const float midpoint = (xmin + xmax) / 2.0f;
972 const float lineAHeight = lineAOffset + lineACoefficient * midpoint;
973 const float lineBHeight = lineBOffset + lineBCoefficient * midpoint;
1003 const int midPoint = (int)samples.size() / 2;
1004 const LineParametersWithConfidence startApproximation = fitLineToSamples(samples, 0, midPoint, &T::SampleType::fitResponseDuration);
1005 const LineParametersWithConfidence endApproximation = fitLineToSamples(samples, midPoint, (int)samples.size(), &T::SampleType::fitResponseDuration);
1860 const int midPoint = (numSamples+1) / 2; // !< ceil(m_numSamples / 2)
1868 for (int sampleNdx = 0; sampleNdx < midPoint; ++sampleNdx)
1870 for (int sampleNdx = midPoint; sampleNdx < numSamples; ++sampleNdx)
1871 iterationOrder[sampleNdx] = (sampleNdx - midPoint) * 2 + 1;
1873 for (int ndx = 0; ndx < midPoint; ++ndx)
1874 std::swap(iterationOrder[ndx], iterationOrder[rnd.getInt(0, midPoint - 1)]);
1875 for (int ndx = midPoint; ndx < (int)iterationOrder.size(); ++ndx)
1876 std::swap(iterationOrder[ndx], iterationOrder[rnd.getInt(midPoint, (int)iterationOrder.size()-1)]);