class Function {

    static Value funcMaxOverTime(Evaluator ev, Expressions args) {
        return aggrOverTime(ev, args, values -> {
            double max = Double.MIN_VALUE;
            for (Series.Point v : values) {
                if (v.getV() > max) {
                    max = v.getV();
                }
            }
            return max;
        });
    }

    public  Function(String name, ValueType[] argTypes, ValueType returnType, FuncCallFn call);

}