public static double tTest(double t,double nu){
  double a=nu / 2.0;
  double b=0.5;
  double x=nu / (nu + t * t);
  return 1.0 - betai(a,b,x);
}

public static double tTest ( double t , double nu ) { double a = nu / 2.0 ; double b = 0.5 ; double x = nu / ( nu + t * t ) ; return 1.0 - betai ( a , b , x ) ; }
applies the two - sided t - test given the value of t and nu . to do this it calls betai .
