public static void chi_square_cdf_values_test() //****************************************************************************80 // // Purpose: // // CHI_SQUARE_CDF_VALUES_TEST tests CHI_SQUARE_CDF_VALUES. // // Licensing: // // This code is distributed under the GNU LGPL license. // // Modified: // // 09 February 2007 // // Author: // // John Burkardt // { int a = 0; double fx = 0; double x = 0; Console.WriteLine(""); Console.WriteLine("CHI_SQUARE_CDF_VALUES_TEST:"); Console.WriteLine(" CHI_SQUARE_CDF_VALUES returns values of "); Console.WriteLine(" the Chi-Squared Cumulative Density Function."); Console.WriteLine(""); Console.WriteLine(" N X CDF(X)"); Console.WriteLine(""); int n_data = 0; for (;;) { Chi.chi_square_cdf_values(ref n_data, ref a, ref x, ref fx); if (n_data == 0) { break; } Console.WriteLine(" " + a.ToString(CultureInfo.InvariantCulture).PadLeft(6) + " " + x.ToString(CultureInfo.InvariantCulture).PadLeft(8) + " " + fx.ToString(CultureInfo.InvariantCulture).PadLeft(12) + ""); } }