/** * Sorts the array <b>values</b> in ascending order and returns the value from array <b>values</b> at position <b>position</b> * @param values array of org.openl.meta.DoubleValue values * @param position int value * @return the value from array <b>values</b> at position <b>position</b> */ public static DoubleValue small(DoubleValue[] values, int position) { return instance(MathUtils.small(unwrap(values), position), NumberOperations.SMALL, values); }
/** * Sorts the array <b>values</b> in descending order and returns the value from array <b>values</b> at position <b>position</b> * @param values array of org.openl.meta.DoubleValue values * @param position int value * @return the value from array <b>values</b> at position <b>position</b> */ public static DoubleValue big(DoubleValue[] values, int position) { return instance(MathUtils.big(unwrap(values), position), NumberOperations.BIG, values); }
/** * Sorts the array <b>values</b> in ascending order and returns the value from array <b>values</b> at position <b>position</b> * @param values array of org.openl.meta.DoubleValue values * @param position int value * @return the value from array <b>values</b> at position <b>position</b> */ public static DoubleValue small(DoubleValue[] values, int position) { return instance(MathUtils.small(unwrap(values), position), NumberOperations.SMALL, values); }
/** * Sorts the array <b>values</b> in descending order and returns the value from array <b>values</b> at position <b>position</b> * @param values array of org.openl.meta.DoubleValue values * @param position int value * @return the value from array <b>values</b> at position <b>position</b> */ public static DoubleValue big(DoubleValue[] values, int position) { return instance(MathUtils.big(unwrap(values), position), NumberOperations.BIG, values); }
public static DoubleValue sum(DoubleValue... values) { return instance(Sum.sum(unwrap(values)), NumberOperations.SUM, values); }
public static DoubleValue median(DoubleValue... values) { return instance(MathUtils.median(unwrap(values)), NumberOperations.MEDIAN, values); }
public static DoubleValue product(DoubleValue... values) { return instance(Product.product(unwrap(values)), NumberOperations.PRODUCT, values); }
public static DoubleValue sum(DoubleValue... values) { return instance(Sum.sum(unwrap(values)), NumberOperations.SUM, values); }
public static DoubleValue avg(DoubleValue... values) { return instance(Avg.avg(unwrap(values)), NumberOperations.AVG, values); }
public static DoubleValue median(DoubleValue... values) { return instance(MathUtils.median(unwrap(values)), NumberOperations.MEDIAN, values); }
public static DoubleValue product(DoubleValue... values) { return instance(Product.product(unwrap(values)), NumberOperations.PRODUCT, values); }
public static DoubleValue avg(DoubleValue... values) { return instance(Avg.avg(unwrap(values)), NumberOperations.AVG, values); }