public static object GetConfidenceInterval(double cl, double s, int n) { StudentTDistribution tDistribution = new StudentTDistribution(n, 1.27); return(tDistribution.GetConfidenceInterval(cl, s)); }
public static object GetTTestValue(double[] array1, double[] array2) { StudentTDistribution tDistribution = new StudentTDistribution(3, 1.27); return(tDistribution.GetTTestValue(array1, array2, 3)); }
/// <summary> /// A method returns T parameter for a given confidence level. /// </summary> /// <param name="cl">Confidence level. It should be within range [80:90].</param> /// <param name="n">Degrees of freedom. It should be less than 30 and greater then 0.</param> /// <returns>A calcualtion result as an object.</returns> public static object GetTParameter(double cl, int n) { StudentTDistribution tDistribution = new StudentTDistribution(n, 1.27); return(tDistribution.GetTParameter(cl)); }