/**
 * Return the mean and standard deviation of a given data set.
 *
 * @param dataSet A list of numeric values.
 * @return Pair of mean and standard deviation of the data set.
 */
fun calculateStatistics(dataSet: List<Double>): Pair<Double, Double> {

    val mean = dataSet.sum() / dataSet.size
    val standardDeviation = kotlin.math.sqrt(dataSet.map { (it - mean) * (it - mean) }.sum() / dataSet.size)
    return Pair(mean, standardDeviation)
}
/**
 * Return the mean and standard deviation of a given data set.
 *
 * @param dataSet A list of numeric values.
 * @return Pair of mean and standard deviation of the data set.
 */
fun calculateStatistics(dataSet: List<Double>): Pair<Double, Double> {
/**
 * Return the mean and standard deviation of a given data set.
 *
 * @param dataSet A list of numeric values.
 * @return Pair of mean and standard deviation of the data set.
 */
fun calculateStatistics(dataSet: List<Double>): Pair<Double, Double> {

    val mean = dataSet.sum() / dataSet.size
    val standardDeviation = kotlin.math.sqrt(dataSet.map { (it - mean) * (it - mean) }.sum() / dataSet.size)
    return Pair(mean, standardDeviation)
}