Exemplo n.º 1
0
 /// <summary>
 ///   Converts a given test statistic to a p-value.
 /// </summary>
 ///
 /// <param name="x">The value of the test statistic.</param>
 ///
 /// <returns>The p-value for the given statistic.</returns>
 ///
 public override double StatisticToPValue(double x)
 {
     return(TTest.StatisticToPValue(x, StatisticDistribution, Tail));
 }
Exemplo n.º 2
0
 /// <summary>
 ///   Converts a given p-value to a test statistic.
 /// </summary>
 ///
 /// <param name="p">The p-value.</param>
 ///
 /// <returns>The test statistic which would generate the given p-value.</returns>
 ///
 public override double PValueToStatistic(double p)
 {
     return(TTest.PValueToStatistic(p, StatisticDistribution, Tail));
 }