double dof = 3.0;
double lambda = 1.5;
boost::math::non_central_chi_squared_distribution<double> myNonCentralChiSquared(dof, lambda);
cout << "pdf: " << pdf(myNonCentralChiSquared, x) << endl;
cout << "cdf: " << cdf(myNonCentralChiSquared, x) << endl;
// Other properties
cout << "\n***Noncentral Chi^2 Distribution: \n";
cout << "mean: " << mean(myNonCentralChiSquared) << endl;
cout << "variance: " << variance(myNonCentralChiSquared) << endl;
cout << "median: " << median(myNonCentralChiSquared) << endl;
cout << "mode: " << mode(myNonCentralChiSquared) << endl;
cout << "kurtosis excess: " << kurtosis_excess(myNonCentralChiSquared) << endl;
cout << "kurtosis: " << kurtosis(myNonCentralChiSquared) << endl;
cout << "characteristic function: " << chf(myNonCentralChiSquared, x) << endl;
cout << "hazard: " << hazard(myNonCentralChiSquared, x) << endl;