public static double sampleStandardDeviation(int size,double sampleVariance){
  double s, Cn;
  int n=size;
  s=Math.sqrt(sampleVariance);
  if (n > 30) {
    Cn=1 + 1.0 / (4 * (n - 1));
  }
 else {
    Cn=Math.sqrt((n - 1) * 0.5) * Gamma.gamma((n - 1) * 0.5) / Gamma.gamma(n * 0.5);
  }
  return Cn * s;
}

public static double sampleStandardDeviation ( int size , double sampleVariance ) { double s , Cn ; int n = size ; s = Math . sqrt ( sampleVariance ) ; if ( n > 30 ) { Cn = 1 + 1.0 / ( 4 * ( n - 1 ) ) ; } else { Cn = Math . sqrt ( ( n - 1 ) * 0.5 ) * Gamma . gamma ( ( n - 1 ) * 0.5 ) / Gamma . gamma ( n * 0.5 ) ; } return Cn * s ; }
returns the sample standard deviation . ref : r . r . sokal , f . j . rohlf , biometry : the principles and practice of statistics in biological research ( w . h . freeman and company , new york , 1998 , 3rd edition ) p . 53 .
