public static double calculateStdResult(double variance, long count) {
      return Math.sqrt(variance / count);
    }
Compute the standard deviation by extending GenericUDAFVarianceEvaluator
and overriding the terminate() method of the evaluator.
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDAFStd.java