public static double dev(DoubleList doubles){
  if (doubles.isEmpty()) {
    return Double.NaN;
  }
  return Math.sqrt(variance(doubles));
}

public static double dev ( DoubleList doubles ) { if ( doubles . isEmpty ( ) ) { return Double . NaN ; } return Math . sqrt ( variance ( doubles ) ) ; }
calculates the standard deviation
