/**
 * Remove outliers from a list of environmental data points.
 *
 * @param dataPoints A list of environmental data points.
 * @param threshold The threshold value used to determine outliers.
 * @return A list of environmental data points without outliers.
 */
fun removeOutliers(dataPoints: List<Double>, threshold: Double): List<Double> {

    // Remove outliers below the threshold
    var filteredData = dataPoints.filter { it >= threshold }

    // Remove outliers above the threshold
    filteredData = filteredData.filter { it <= threshold }

    return filteredData
}
/**
 * Remove outliers from a list of environmental data points.
 *
 * @param dataPoints A list of environmental data points.
 * @param threshold The threshold value used to determine outliers.
 * @return A list of environmental data points without outliers.
 */
fun removeOutliers(dataPoints: List<Double>, threshold: Double): List<Double> {
/**
 * Remove outliers from a list of environmental data points.
 *
 * @param dataPoints A list of environmental data points.
 * @param threshold The threshold value used to determine outliers.
 * @return A list of environmental data points without outliers.
 */
fun removeOutliers(dataPoints: List<Double>, threshold: Double): List<Double> {

    // Remove outliers below the threshold
    var filteredData = dataPoints.filter { it >= threshold }

    // Remove outliers above the threshold
    filteredData = filteredData.filter { it <= threshold }

    return filteredData
}