averaging

fun averaging(coordinates: List<Coordinate>, maxDataPoints: Int?): List<Coordinate>