class PpeOp extends Operator {

    static Double getMedian(double[] listDoubles) {
        Arrays.sort(listDoubles);
        if (listDoubles[1] == 0) {
            return (listDoubles[3]);
        } else if (listDoubles[0] == 0) {
            return ((listDoubles[2] + listDoubles[3]) / 2);
        } else {
            return (listDoubles[2]);
        }
    }

}