cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/util/MathUtil.java
public static double iqr(final double... data) {
        Arrays.sort(data);
        final int q1 = (int) Math.round(0.25 * (data.length + 1)) - 1;
        final int q3 = (int) Math.round(0.75 * (data.length + 1)) - 1;
        return data[q3] - data[q1];
    }
/**
     * Gets the Interquartile Range (IQR) from an array of numbers.
     *
     * @param data the array of numbers
     * @return the IQR
     */
Gets the Interquartile Range (IQR) from an array of numbers.
@param data the array of numbers
@return the IQR
Gets the Interquartile Range ( IQR ) from an array of numbers . @param data the array of numbers @return the IQR
public static double iqr(final double... data) {
        Arrays.sort(data);
        final int q1 = (int) Math.round(0.25 * (data.length + 1)) - 1;
        final int q3 = (int) Math.round(0.75 * (data.length + 1)) - 1;
        return data[q3] - data[q1];
    }
public static double iqr ( final double ... data ) { Arrays . sort ( data ) ; final int q1 = ( int ) Math . round ( 0.25 * ( data . length + 1 ) ) - 1 ; final int q3 = ( int ) Math . round ( 0.75 * ( data . length + 1 ) ) - 1 ; return data [ q3 ] - data [ q1 ] ; }
Gets the Interquartile Range (IQR) from an array of numbers.
Gets the Interquartile Range ( IQR ) from an array of numbers .