std::vector<std::pair<double, double> > calcSamplesForRange(double minInclusive, double maxInclusive, double sigma, int samplesPerBin)
{
	return sampleInterval(
		sigma,
		minInclusive,
		maxInclusive,
		samplesPerBin
	);
}
bool Foam::correlationFunction<Type>::writeAveraged(Ostream& os) const
{
    Field<scalar> averageCF(averaged());

    forAll(averageCF, v)
    {
        os  << v*sampleInterval()
            << token::SPACE
            << averageCF[v]
            << nl;
    }