public class org.apache.commons.math.stat.descriptive.rank.Percentile extends org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic implements java.io.Serializable
{
private static final long serialVersionUID;
private static final int MIN_SELECT_SIZE;
private static final int MAX_CACHED_LEVELS;
private double quantile;
private int[] cachedPivots;
public void <init>()
{
org.apache.commons.math.stat.descriptive.rank.Percentile v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
specialinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: void <init>(double)>(50.0);
return;
}
public void <init>(double) throws org.apache.commons.math.exception.MathIllegalArgumentException
{
org.apache.commons.math.stat.descriptive.rank.Percentile v;
double v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
v := @parameter: double;
specialinvoke v.<org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic: void <init>()>();
v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double quantile> = 0.0;
virtualinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: void setQuantile(double)>(v);
v.<org.apache.commons.math.stat.descriptive.rank.Percentile: int[] cachedPivots> = null;
return;
}
public void <init>(org.apache.commons.math.stat.descriptive.rank.Percentile) throws org.apache.commons.math.exception.NullArgumentException
{
org.apache.commons.math.stat.descriptive.rank.Percentile v, v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
v := @parameter: org.apache.commons.math.stat.descriptive.rank.Percentile;
specialinvoke v.<org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic: void <init>()>();
v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double quantile> = 0.0;
staticinvoke <org.apache.commons.math.stat.descriptive.rank.Percentile: void copy(org.apache.commons.math.stat.descriptive.rank.Percentile,org.apache.commons.math.stat.descriptive.rank.Percentile)>(v, v);
return;
}
public void setData(double[])
{
org.apache.commons.math.stat.descriptive.rank.Percentile v;
int[] v, v;
double[] v;
int v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
v := @parameter: double[];
if v != null goto label;
v.<org.apache.commons.math.stat.descriptive.rank.Percentile: int[] cachedPivots> = null;
goto label;
label:
v = newarray (int)[1023];
v.<org.apache.commons.math.stat.descriptive.rank.Percentile: int[] cachedPivots> = v;
v = v.<org.apache.commons.math.stat.descriptive.rank.Percentile: int[] cachedPivots>;
v = (int) -1;
staticinvoke <java.util.Arrays: void fill(int[],int)>(v, v);
label:
specialinvoke v.<org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic: void setData(double[])>(v);
return;
}
public void setData(double[], int, int) throws org.apache.commons.math.exception.MathIllegalArgumentException
{
org.apache.commons.math.stat.descriptive.rank.Percentile v;
int[] v, v;
double[] v;
int v, v, v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
v := @parameter: double[];
v := @parameter: int;
v := @parameter: int;
if v != null goto label;
v.<org.apache.commons.math.stat.descriptive.rank.Percentile: int[] cachedPivots> = null;
goto label;
label:
v = newarray (int)[1023];
v.<org.apache.commons.math.stat.descriptive.rank.Percentile: int[] cachedPivots> = v;
v = v.<org.apache.commons.math.stat.descriptive.rank.Percentile: int[] cachedPivots>;
v = (int) -1;
staticinvoke <java.util.Arrays: void fill(int[],int)>(v, v);
label:
specialinvoke v.<org.apache.commons.math.stat.descriptive.AbstractUnivariateStatistic: void setData(double[],int,int)>(v, v, v);
return;
}
public double evaluate(double) throws org.apache.commons.math.exception.MathIllegalArgumentException
{
org.apache.commons.math.stat.descriptive.rank.Percentile v;
double[] v;
double v, v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
v := @parameter: double;
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double[] getDataRef()>();
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double evaluate(double[],double)>(v, v);
return v;
}
public double evaluate(double[], double) throws org.apache.commons.math.exception.MathIllegalArgumentException
{
org.apache.commons.math.stat.descriptive.rank.Percentile v;
double[] v;
int v;
double v, v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
v := @parameter: double[];
v := @parameter: double;
virtualinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: boolean test(double[],int,int)>(v, 0, 0);
v = lengthof v;
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double evaluate(double[],int,int,double)>(v, 0, v, v);
return v;
}
public double evaluate(double[], int, int) throws org.apache.commons.math.exception.MathIllegalArgumentException
{
org.apache.commons.math.stat.descriptive.rank.Percentile v;
double[] v;
int v, v;
double v, v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
v := @parameter: double[];
v := @parameter: int;
v := @parameter: int;
v = v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double quantile>;
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double evaluate(double[],int,int,double)>(v, v, v, v);
return v;
}
public double evaluate(double[], int, int, double) throws org.apache.commons.math.exception.MathIllegalArgumentException
{
java.lang.Integer v, v;
org.apache.commons.math.exception.OutOfRangeException v;
byte v, v, v, v;
int[] v;
java.lang.Double v;
double[] v, v, v;
int v, v, v, v, v;
double v, v, v, v, v, v, v, v, v, v, v, v, v, v;
org.apache.commons.math.exception.util.LocalizedFormats v;
org.apache.commons.math.stat.descriptive.rank.Percentile v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
v := @parameter: double[];
v := @parameter: int;
v := @parameter: int;
v := @parameter: double;
virtualinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: boolean test(double[],int,int)>(v, v, v);
v = v cmpl 100.0;
if v > 0 goto label;
v = v cmpg 0.0;
if v > 0 goto label;
label:
v = new org.apache.commons.math.exception.OutOfRangeException;
v = <org.apache.commons.math.exception.util.LocalizedFormats: org.apache.commons.math.exception.util.LocalizedFormats OUT_OF_BOUNDS_QUANTILE_VALUE>;
v = staticinvoke <java.lang.Double: java.lang.Double valueOf(double)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(0);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(100);
specialinvoke v.<org.apache.commons.math.exception.OutOfRangeException: void <init>(org.apache.commons.math.exception.util.Localizable,java.lang.Number,java.lang.Number,java.lang.Number)>(v, v, v, v);
throw v;
label:
if v != 0 goto label;
return #NaN;
label:
if v != 1 goto label;
v = v[v];
return v;
label:
v = v + 1.0;
v = v * v;
v = v / 100.0;
v = staticinvoke <org.apache.commons.math.util.FastMath: double floor(double)>(v);
v = v - v;
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double[] getDataRef()>();
if v != v goto label;
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double[] getDataRef()>();
v = v.<org.apache.commons.math.stat.descriptive.rank.Percentile: int[] cachedPivots>;
goto label;
label:
v = newarray (double)[v];
staticinvoke <java.lang.System: void arraycopy(java.lang.Object,int,java.lang.Object,int,int)>(v, v, v, 0, v);
v = newarray (int)[1023];
v = (int) -1;
staticinvoke <java.util.Arrays: void fill(int[],int)>(v, v);
label:
v = v cmpg 1.0;
if v >= 0 goto label;
v = specialinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double select(double[],int[],int)>(v, v, 0);
return v;
label:
v = v cmpl v;
if v < 0 goto label;
v = v - 1;
v = specialinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double select(double[],int[],int)>(v, v, v);
return v;
label:
v = v - 1;
v = specialinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double select(double[],int[],int)>(v, v, v);
v = specialinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double select(double[],int[],int)>(v, v, v);
v = v - v;
v = v * v;
v = v + v;
return v;
}
private double select(double[], int[], int)
{
double[] v;
int[] v;
int v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v;
double v, v;
org.apache.commons.math.stat.descriptive.rank.Percentile v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
v := @parameter: double[];
v := @parameter: int[];
v := @parameter: int;
v = 0;
v = lengthof v;
v = 0;
label:
v = v - v;
if v <= 15 goto label;
v = lengthof v;
if v >= v goto label;
v = v[v];
if v < 0 goto label;
v = v[v];
goto label;
label:
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: int medianOf3(double[],int,int)>(v, v, v);
v = specialinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: int partition(double[],int,int,int)>(v, v, v, v);
v = lengthof v;
if v >= v goto label;
v[v] = v;
label:
if v != v goto label;
v = v[v];
return v;
label:
if v >= v goto label;
v = v;
v = 2 * v;
v = v + 1;
v = lengthof v;
v = staticinvoke <org.apache.commons.math.util.FastMath: int min(int,int)>(v, v);
goto label;
label:
v = v + 1;
v = 2 * v;
v = v + 2;
v = lengthof v;
v = staticinvoke <org.apache.commons.math.util.FastMath: int min(int,int)>(v, v);
goto label;
label:
specialinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: void insertionSort(double[],int,int)>(v, v, v);
v = v[v];
return v;
}
int medianOf3(double[], int, int)
{
double[] v;
byte v, v, v, v, v;
int v, v, v, v, v, v, v, v;
double v, v, v;
org.apache.commons.math.stat.descriptive.rank.Percentile v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
v := @parameter: double[];
v := @parameter: int;
v := @parameter: int;
v = v - 1;
v = v - v;
v = v / 2;
v = v + v;
v = v[v];
v = v[v];
v = v[v];
v = v cmpg v;
if v >= 0 goto label;
v = v cmpg v;
if v >= 0 goto label;
return v;
label:
v = v cmpg v;
if v >= 0 goto label;
v = v;
goto label;
label:
v = v;
label:
return v;
label:
v = v cmpg v;
if v >= 0 goto label;
return v;
label:
v = v cmpg v;
if v >= 0 goto label;
v = v;
goto label;
label:
v = v;
label:
return v;
}
private int partition(double[], int, int, int)
{
double[] v;
byte v, v, v;
int v, v, v, v, v, v, v;
double v, v, v, v, v, v, v, v;
org.apache.commons.math.stat.descriptive.rank.Percentile v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
v := @parameter: double[];
v := @parameter: int;
v := @parameter: int;
v := @parameter: int;
v = v[v];
v = v[v];
v[v] = v;
v = v + 1;
v = v - 1;
label:
if v >= v goto label;
label:
if v >= v goto label;
v = v[v];
v = v cmpl v;
if v <= 0 goto label;
v = v - 1;
goto label;
label:
if v >= v goto label;
v = v[v];
v = v cmpg v;
if v >= 0 goto label;
v = v + 1;
goto label;
label:
if v >= v goto label;
v = v[v];
v = v;
v = v + 1;
v = v[v];
v[v] = v;
v = v;
v = v - 1;
v[v] = v;
goto label;
label:
if v >= v goto label;
v = v[v];
v = v cmpl v;
if v <= 0 goto label;
label:
v = v - 1;
label:
v = v[v];
v[v] = v;
v[v] = v;
return v;
}
private void insertionSort(double[], int, int)
{
double[] v;
org.apache.commons.math.stat.descriptive.rank.Percentile v;
byte v;
int v, v, v, v, v, v;
double v, v, v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
v := @parameter: double[];
v := @parameter: int;
v := @parameter: int;
v = v + 1;
label:
if v >= v goto label;
v = v[v];
v = v - 1;
label:
if v < v goto label;
v = v[v];
v = v cmpg v;
if v >= 0 goto label;
v = v + 1;
v = v[v];
v[v] = v;
v = v - 1;
goto label;
label:
v = v + 1;
v[v] = v;
v = v + 1;
goto label;
label:
return;
}
public double getQuantile()
{
org.apache.commons.math.stat.descriptive.rank.Percentile v;
double v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
v = v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double quantile>;
return v;
}
public void setQuantile(double) throws org.apache.commons.math.exception.MathIllegalArgumentException
{
org.apache.commons.math.exception.util.LocalizedFormats v;
java.lang.Double v;
java.lang.Integer v, v;
org.apache.commons.math.exception.OutOfRangeException v;
org.apache.commons.math.stat.descriptive.rank.Percentile v;
byte v, v;
double v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
v := @parameter: double;
v = v cmpg 0.0;
if v <= 0 goto label;
v = v cmpl 100.0;
if v <= 0 goto label;
label:
v = new org.apache.commons.math.exception.OutOfRangeException;
v = <org.apache.commons.math.exception.util.LocalizedFormats: org.apache.commons.math.exception.util.LocalizedFormats OUT_OF_BOUNDS_QUANTILE_VALUE>;
v = staticinvoke <java.lang.Double: java.lang.Double valueOf(double)>(v);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(0);
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(100);
specialinvoke v.<org.apache.commons.math.exception.OutOfRangeException: void <init>(org.apache.commons.math.exception.util.Localizable,java.lang.Number,java.lang.Number,java.lang.Number)>(v, v, v, v);
throw v;
label:
v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double quantile> = v;
return;
}
public org.apache.commons.math.stat.descriptive.rank.Percentile copy()
{
org.apache.commons.math.stat.descriptive.rank.Percentile v, v;
v := @this: org.apache.commons.math.stat.descriptive.rank.Percentile;
v = new org.apache.commons.math.stat.descriptive.rank.Percentile;
specialinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: void <init>()>();
staticinvoke <org.apache.commons.math.stat.descriptive.rank.Percentile: void copy(org.apache.commons.math.stat.descriptive.rank.Percentile,org.apache.commons.math.stat.descriptive.rank.Percentile)>(v, v);
return v;
}
public static void copy(org.apache.commons.math.stat.descriptive.rank.Percentile, org.apache.commons.math.stat.descriptive.rank.Percentile) throws org.apache.commons.math.exception.NullArgumentException
{
double[] v;
org.apache.commons.math.stat.descriptive.rank.Percentile v, v;
int[] v, v, v, v;
int v;
double v;
v := @parameter: org.apache.commons.math.stat.descriptive.rank.Percentile;
v := @parameter: org.apache.commons.math.stat.descriptive.rank.Percentile;
staticinvoke <org.apache.commons.math.util.MathUtils: void checkNotNull(java.lang.Object)>(v);
staticinvoke <org.apache.commons.math.util.MathUtils: void checkNotNull(java.lang.Object)>(v);
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double[] getDataRef()>();
virtualinvoke v.<org.apache.commons.math.stat.descriptive.rank.Percentile: void setData(double[])>(v);
v = v.<org.apache.commons.math.stat.descriptive.rank.Percentile: int[] cachedPivots>;
if v == null goto label;
v = v.<org.apache.commons.math.stat.descriptive.rank.Percentile: int[] cachedPivots>;
v = v.<org.apache.commons.math.stat.descriptive.rank.Percentile: int[] cachedPivots>;
v = v.<org.apache.commons.math.stat.descriptive.rank.Percentile: int[] cachedPivots>;
v = lengthof v;
staticinvoke <java.lang.System: void arraycopy(java.lang.Object,int,java.lang.Object,int,int)>(v, 0, v, 0, v);
label:
v = v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double quantile>;
v.<org.apache.commons.math.stat.descriptive.rank.Percentile: double quantile> = v;
return;
}
}