public class org.apache.commons.math.random.EmpiricalDistribution extends org.apache.commons.math.distribution.AbstractRealDistribution
{
public static final int DEFAULT_BIN_COUNT;
private static final java.lang.String FILE_CHARSET;
private static final long serialVersionUID;
protected final org.apache.commons.math.random.RandomDataGenerator randomData;
private final java.util.List binStats;
private org.apache.commons.math.stat.descriptive.SummaryStatistics sampleStats;
private double max;
private double min;
private double delta;
private final int binCount;
private boolean loaded;
private double[] upperBounds;
public void <init>()
{
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: void <init>(int)>(1000);
return;
}
public void <init>(int)
{
int v;
org.apache.commons.math.random.RandomDataGenerator v;
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: int;
v = new org.apache.commons.math.random.RandomDataGenerator;
specialinvoke v.<org.apache.commons.math.random.RandomDataGenerator: void <init>()>();
specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: void <init>(int,org.apache.commons.math.random.RandomDataGenerator)>(v, v);
return;
}
public void <init>(int, org.apache.commons.math.random.RandomGenerator)
{
org.apache.commons.math.random.RandomDataGenerator v;
org.apache.commons.math.random.RandomGenerator v;
int v;
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: int;
v := @parameter: org.apache.commons.math.random.RandomGenerator;
v = new org.apache.commons.math.random.RandomDataGenerator;
specialinvoke v.<org.apache.commons.math.random.RandomDataGenerator: void <init>(org.apache.commons.math.random.RandomGenerator)>(v);
specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: void <init>(int,org.apache.commons.math.random.RandomDataGenerator)>(v, v);
return;
}
public void <init>(org.apache.commons.math.random.RandomGenerator)
{
org.apache.commons.math.random.EmpiricalDistribution v;
org.apache.commons.math.random.RandomGenerator v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: org.apache.commons.math.random.RandomGenerator;
specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: void <init>(int,org.apache.commons.math.random.RandomGenerator)>(1000, v);
return;
}
public void <init>(int, org.apache.commons.math.random.RandomDataImpl)
{
org.apache.commons.math.random.RandomDataGenerator v;
int v;
org.apache.commons.math.random.RandomDataImpl v;
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: int;
v := @parameter: org.apache.commons.math.random.RandomDataImpl;
v = virtualinvoke v.<org.apache.commons.math.random.RandomDataImpl: org.apache.commons.math.random.RandomDataGenerator getDelegate()>();
specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: void <init>(int,org.apache.commons.math.random.RandomDataGenerator)>(v, v);
return;
}
public void <init>(org.apache.commons.math.random.RandomDataImpl)
{
org.apache.commons.math.random.RandomDataImpl v;
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: org.apache.commons.math.random.RandomDataImpl;
specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: void <init>(int,org.apache.commons.math.random.RandomDataImpl)>(1000, v);
return;
}
private void <init>(int, org.apache.commons.math.random.RandomDataGenerator)
{
org.apache.commons.math.random.RandomDataGenerator v;
int v;
org.apache.commons.math.random.EmpiricalDistribution v;
java.util.ArrayList v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: int;
v := @parameter: org.apache.commons.math.random.RandomDataGenerator;
specialinvoke v.<org.apache.commons.math.distribution.AbstractRealDistribution: void <init>(org.apache.commons.math.random.RandomGenerator)>(null);
v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.stat.descriptive.SummaryStatistics sampleStats> = null;
v.<org.apache.commons.math.random.EmpiricalDistribution: double max> = #-Infinity;
v.<org.apache.commons.math.random.EmpiricalDistribution: double min> = #Infinity;
v.<org.apache.commons.math.random.EmpiricalDistribution: double delta> = 0.0;
v.<org.apache.commons.math.random.EmpiricalDistribution: boolean loaded> = 0;
v.<org.apache.commons.math.random.EmpiricalDistribution: double[] upperBounds> = null;
v.<org.apache.commons.math.random.EmpiricalDistribution: int binCount> = v;
v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.random.RandomDataGenerator randomData> = v;
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v.<org.apache.commons.math.random.EmpiricalDistribution: java.util.List binStats> = v;
return;
}
public void load(double[]) throws org.apache.commons.math.exception.NullArgumentException
{
org.apache.commons.math.exception.MathInternalError v;
org.apache.commons.math.random.EmpiricalDistribution$ArrayDataAdapter v, v;
double[] v;
java.io.IOException v;
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: double[];
v = new org.apache.commons.math.random.EmpiricalDistribution$ArrayDataAdapter;
specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution$ArrayDataAdapter: void <init>(org.apache.commons.math.random.EmpiricalDistribution,double[])>(v, v);
label:
virtualinvoke v.<org.apache.commons.math.random.EmpiricalDistribution$DataAdapter: void computeStats()>();
v = new org.apache.commons.math.random.EmpiricalDistribution$ArrayDataAdapter;
specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution$ArrayDataAdapter: void <init>(org.apache.commons.math.random.EmpiricalDistribution,double[])>(v, v);
specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: void fillBinStats(org.apache.commons.math.random.EmpiricalDistribution$DataAdapter)>(v);
label:
goto label;
label:
v := @caughtexception;
v = new org.apache.commons.math.exception.MathInternalError;
specialinvoke v.<org.apache.commons.math.exception.MathInternalError: void <init>()>();
throw v;
label:
v.<org.apache.commons.math.random.EmpiricalDistribution: boolean loaded> = 1;
return;
catch java.io.IOException from label to label with label;
}
public void load(java.net.URL) throws java.io.IOException, org.apache.commons.math.exception.NullArgumentException, org.apache.commons.math.exception.ZeroException
{
java.lang.Throwable v;
java.lang.Object[] v;
java.net.URL v;
long v;
byte v;
java.nio.charset.Charset v;
org.apache.commons.math.random.EmpiricalDistribution v;
org.apache.commons.math.exception.util.LocalizedFormats v;
org.apache.commons.math.exception.ZeroException v;
java.io.InputStreamReader v, v;
org.apache.commons.math.random.EmpiricalDistribution$StreamDataAdapter v, v;
org.apache.commons.math.stat.descriptive.SummaryStatistics v;
java.io.BufferedReader v, v;
java.io.InputStream v, v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: java.net.URL;
staticinvoke <org.apache.commons.math.util.MathUtils: void checkNotNull(java.lang.Object)>(v);
v = staticinvoke <java.nio.charset.Charset: java.nio.charset.Charset forName(java.lang.String)>("US-ASCII");
v = new java.io.BufferedReader;
v = new java.io.InputStreamReader;
v = virtualinvoke v.<java.net.URL: java.io.InputStream openStream()>();
specialinvoke v.<java.io.InputStreamReader: void <init>(java.io.InputStream,java.nio.charset.Charset)>(v, v);
specialinvoke v.<java.io.BufferedReader: void <init>(java.io.Reader)>(v);
label:
v = new org.apache.commons.math.random.EmpiricalDistribution$StreamDataAdapter;
specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution$StreamDataAdapter: void <init>(org.apache.commons.math.random.EmpiricalDistribution,java.io.BufferedReader)>(v, v);
virtualinvoke v.<org.apache.commons.math.random.EmpiricalDistribution$DataAdapter: void computeStats()>();
v = v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.stat.descriptive.SummaryStatistics sampleStats>;
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.SummaryStatistics: long getN()>();
v = v cmp 0L;
if v != 0 goto label;
v = new org.apache.commons.math.exception.ZeroException;
v = <org.apache.commons.math.exception.util.LocalizedFormats: org.apache.commons.math.exception.util.LocalizedFormats URL_CONTAINS_NO_DATA>;
v = newarray (java.lang.Object)[1];
v[0] = v;
specialinvoke v.<org.apache.commons.math.exception.ZeroException: void <init>(org.apache.commons.math.exception.util.Localizable,java.lang.Object[])>(v, v);
throw v;
label:
v = new java.io.BufferedReader;
v = new java.io.InputStreamReader;
v = virtualinvoke v.<java.net.URL: java.io.InputStream openStream()>();
specialinvoke v.<java.io.InputStreamReader: void <init>(java.io.InputStream,java.nio.charset.Charset)>(v, v);
specialinvoke v.<java.io.BufferedReader: void <init>(java.io.Reader)>(v);
v = new org.apache.commons.math.random.EmpiricalDistribution$StreamDataAdapter;
specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution$StreamDataAdapter: void <init>(org.apache.commons.math.random.EmpiricalDistribution,java.io.BufferedReader)>(v, v);
specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: void fillBinStats(org.apache.commons.math.random.EmpiricalDistribution$DataAdapter)>(v);
v.<org.apache.commons.math.random.EmpiricalDistribution: boolean loaded> = 1;
label:
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public void load(java.io.File) throws java.io.IOException, org.apache.commons.math.exception.NullArgumentException
{
java.lang.Throwable v;
java.io.FileInputStream v, v;
java.io.InputStreamReader v, v;
java.io.File v;
org.apache.commons.math.random.EmpiricalDistribution$StreamDataAdapter v, v;
java.nio.charset.Charset v;
java.io.BufferedReader v, v;
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: java.io.File;
staticinvoke <org.apache.commons.math.util.MathUtils: void checkNotNull(java.lang.Object)>(v);
v = staticinvoke <java.nio.charset.Charset: java.nio.charset.Charset forName(java.lang.String)>("US-ASCII");
v = new java.io.FileInputStream;
specialinvoke v.<java.io.FileInputStream: void <init>(java.io.File)>(v);
v = new java.io.BufferedReader;
v = new java.io.InputStreamReader;
specialinvoke v.<java.io.InputStreamReader: void <init>(java.io.InputStream,java.nio.charset.Charset)>(v, v);
specialinvoke v.<java.io.BufferedReader: void <init>(java.io.Reader)>(v);
label:
v = new org.apache.commons.math.random.EmpiricalDistribution$StreamDataAdapter;
specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution$StreamDataAdapter: void <init>(org.apache.commons.math.random.EmpiricalDistribution,java.io.BufferedReader)>(v, v);
virtualinvoke v.<org.apache.commons.math.random.EmpiricalDistribution$DataAdapter: void computeStats()>();
v = new java.io.FileInputStream;
specialinvoke v.<java.io.FileInputStream: void <init>(java.io.File)>(v);
v = new java.io.BufferedReader;
v = new java.io.InputStreamReader;
specialinvoke v.<java.io.InputStreamReader: void <init>(java.io.InputStream,java.nio.charset.Charset)>(v, v);
specialinvoke v.<java.io.BufferedReader: void <init>(java.io.Reader)>(v);
v = new org.apache.commons.math.random.EmpiricalDistribution$StreamDataAdapter;
specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution$StreamDataAdapter: void <init>(org.apache.commons.math.random.EmpiricalDistribution,java.io.BufferedReader)>(v, v);
specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: void fillBinStats(org.apache.commons.math.random.EmpiricalDistribution$DataAdapter)>(v);
v.<org.apache.commons.math.random.EmpiricalDistribution: boolean loaded> = 1;
label:
goto label;
label:
v := @caughtexception;
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
private void fillBinStats(org.apache.commons.math.random.EmpiricalDistribution$DataAdapter) throws java.io.IOException
{
org.apache.commons.math.random.EmpiricalDistribution v;
boolean v;
java.util.List v, v, v, v, v;
java.lang.Double v;
double[] v, v, v, v, v;
long v, v, v, v;
int v, v, v, v, v, v, v, v, v, v;
double v, v, v, v, v, v, v, v, v, v, v;
org.apache.commons.math.random.EmpiricalDistribution$DataAdapter v;
org.apache.commons.math.stat.descriptive.SummaryStatistics v, v, v, v, v;
java.lang.Object v, v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: org.apache.commons.math.random.EmpiricalDistribution$DataAdapter;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.stat.descriptive.SummaryStatistics sampleStats>;
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.SummaryStatistics: double getMin()>();
v.<org.apache.commons.math.random.EmpiricalDistribution: double min> = v;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.stat.descriptive.SummaryStatistics sampleStats>;
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.SummaryStatistics: double getMax()>();
v.<org.apache.commons.math.random.EmpiricalDistribution: double max> = v;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double max>;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double min>;
v = v - v;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: int binCount>;
v = staticinvoke <java.lang.Double: java.lang.Double valueOf(double)>(v);
v = virtualinvoke v.<java.lang.Double: double doubleValue()>();
v = v / v;
v.<org.apache.commons.math.random.EmpiricalDistribution: double delta> = v;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: java.util.List binStats>;
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
if v != 0 goto label;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: java.util.List binStats>;
interfaceinvoke v.<java.util.List: void clear()>();
label:
v = 0;
label:
v = v.<org.apache.commons.math.random.EmpiricalDistribution: int binCount>;
if v >= v goto label;
v = new org.apache.commons.math.stat.descriptive.SummaryStatistics;
specialinvoke v.<org.apache.commons.math.stat.descriptive.SummaryStatistics: void <init>()>();
v = v.<org.apache.commons.math.random.EmpiricalDistribution: java.util.List binStats>;
interfaceinvoke v.<java.util.List: void add(int,java.lang.Object)>(v, v);
v = v + 1;
goto label;
label:
virtualinvoke v.<org.apache.commons.math.random.EmpiricalDistribution$DataAdapter: void computeBinStats()>();
v = v.<org.apache.commons.math.random.EmpiricalDistribution: int binCount>;
v = newarray (double)[v];
v.<org.apache.commons.math.random.EmpiricalDistribution: double[] upperBounds> = v;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double[] upperBounds>;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: java.util.List binStats>;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(0);
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.SummaryStatistics: long getN()>();
v = v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.stat.descriptive.SummaryStatistics sampleStats>;
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.SummaryStatistics: long getN()>();
v = v / v;
v[0] = v;
v = 1;
label:
v = v.<org.apache.commons.math.random.EmpiricalDistribution: int binCount>;
v = v - 1;
if v >= v goto label;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double[] upperBounds>;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double[] upperBounds>;
v = v - 1;
v = v[v];
v = v.<org.apache.commons.math.random.EmpiricalDistribution: java.util.List binStats>;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.SummaryStatistics: long getN()>();
v = v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.stat.descriptive.SummaryStatistics sampleStats>;
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.SummaryStatistics: long getN()>();
v = v / v;
v = v + v;
v[v] = v;
v = v + 1;
goto label;
label:
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double[] upperBounds>;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: int binCount>;
v = v - 1;
v[v] = 1.0;
return;
}
private int findBin(double)
{
int v, v, v, v, v;
org.apache.commons.math.random.EmpiricalDistribution v;
double v, v, v, v, v, v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: double;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double min>;
v = v - v;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double delta>;
v = v / v;
v = staticinvoke <org.apache.commons.math.util.FastMath: double ceil(double)>(v);
v = v - 1;
v = staticinvoke <org.apache.commons.math.util.FastMath: int max(int,int)>(v, 0);
v = v.<org.apache.commons.math.random.EmpiricalDistribution: int binCount>;
v = v - 1;
v = staticinvoke <org.apache.commons.math.util.FastMath: int min(int,int)>(v, v);
return v;
}
public double getNextValue() throws org.apache.commons.math.exception.MathIllegalStateException
{
java.lang.Object[] v, v;
double[] v;
long v;
byte v, v, v;
org.apache.commons.math.exception.MathIllegalStateException v, v;
int v, v;
org.apache.commons.math.random.EmpiricalDistribution v;
boolean v;
double v, v, v, v, v;
org.apache.commons.math.exception.util.LocalizedFormats v, v;
org.apache.commons.math.random.RandomDataGenerator v;
java.util.List v;
java.lang.Object v;
org.apache.commons.math.distribution.RealDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: boolean loaded>;
if v != 0 goto label;
v = new org.apache.commons.math.exception.MathIllegalStateException;
v = <org.apache.commons.math.exception.util.LocalizedFormats: org.apache.commons.math.exception.util.LocalizedFormats DISTRIBUTION_NOT_LOADED>;
v = newarray (java.lang.Object)[0];
specialinvoke v.<org.apache.commons.math.exception.MathIllegalStateException: void <init>(org.apache.commons.math.exception.util.Localizable,java.lang.Object[])>(v, v);
throw v;
label:
v = v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.random.RandomDataGenerator randomData>;
v = virtualinvoke v.<org.apache.commons.math.random.RandomDataGenerator: double nextUniform(double,double)>(0.0, 1.0);
v = 0;
label:
v = v.<org.apache.commons.math.random.EmpiricalDistribution: int binCount>;
if v >= v goto label;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double[] upperBounds>;
v = v[v];
v = v cmpg v;
if v > 0 goto label;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: java.util.List binStats>;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.SummaryStatistics: long getN()>();
v = v cmp 0L;
if v <= 0 goto label;
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.SummaryStatistics: double getStandardDeviation()>();
v = v cmpl 0.0;
if v <= 0 goto label;
v = virtualinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.distribution.RealDistribution getKernel(org.apache.commons.math.stat.descriptive.SummaryStatistics)>(v);
v = interfaceinvoke v.<org.apache.commons.math.distribution.RealDistribution: double sample()>();
return v;
label:
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.SummaryStatistics: double getMean()>();
return v;
label:
v = v + 1;
goto label;
label:
v = new org.apache.commons.math.exception.MathIllegalStateException;
v = <org.apache.commons.math.exception.util.LocalizedFormats: org.apache.commons.math.exception.util.LocalizedFormats NO_BIN_SELECTED>;
v = newarray (java.lang.Object)[0];
specialinvoke v.<org.apache.commons.math.exception.MathIllegalStateException: void <init>(org.apache.commons.math.exception.util.Localizable,java.lang.Object[])>(v, v);
throw v;
}
public org.apache.commons.math.stat.descriptive.StatisticalSummary getSampleStats()
{
org.apache.commons.math.stat.descriptive.SummaryStatistics v;
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.stat.descriptive.SummaryStatistics sampleStats>;
return v;
}
public int getBinCount()
{
int v;
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: int binCount>;
return v;
}
public java.util.List getBinStats()
{
java.util.List v;
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: java.util.List binStats>;
return v;
}
public double[] getUpperBounds()
{
double[] v;
int v, v, v, v, v, v, v;
org.apache.commons.math.random.EmpiricalDistribution v;
double v, v, v, v, v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: int binCount>;
v = newarray (double)[v];
v = 0;
label:
v = v.<org.apache.commons.math.random.EmpiricalDistribution: int binCount>;
v = v - 1;
if v >= v goto label;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double min>;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double delta>;
v = v + 1;
v = v * v;
v = v + v;
v[v] = v;
v = v + 1;
goto label;
label:
v = v.<org.apache.commons.math.random.EmpiricalDistribution: int binCount>;
v = v - 1;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double max>;
v[v] = v;
return v;
}
public double[] getGeneratorUpperBounds()
{
double[] v, v, v;
int v;
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double[] upperBounds>;
v = lengthof v;
v = newarray (double)[v];
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double[] upperBounds>;
staticinvoke <java.lang.System: void arraycopy(java.lang.Object,int,java.lang.Object,int,int)>(v, 0, v, 0, v);
return v;
}
public boolean isLoaded()
{
org.apache.commons.math.random.EmpiricalDistribution v;
boolean v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: boolean loaded>;
return v;
}
public void reSeed(long)
{
org.apache.commons.math.random.RandomDataGenerator v;
long v;
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: long;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.random.RandomDataGenerator randomData>;
virtualinvoke v.<org.apache.commons.math.random.RandomDataGenerator: void reSeed(long)>(v);
return;
}
public double probability(double)
{
org.apache.commons.math.random.EmpiricalDistribution v;
double v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: double;
return 0.0;
}
public double density(double)
{
java.util.List v;
byte v, v;
int v;
java.lang.Object v;
org.apache.commons.math.distribution.RealDistribution v;
org.apache.commons.math.random.EmpiricalDistribution v;
double v, v, v, v, v, v, v, v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: double;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double min>;
v = v cmpg v;
if v < 0 goto label;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double max>;
v = v cmpl v;
if v <= 0 goto label;
label:
return 0.0;
label:
v = specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: int findBin(double)>(v);
v = v.<org.apache.commons.math.random.EmpiricalDistribution: java.util.List binStats>;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = virtualinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.distribution.RealDistribution getKernel(org.apache.commons.math.stat.descriptive.SummaryStatistics)>(v);
v = interfaceinvoke v.<org.apache.commons.math.distribution.RealDistribution: double density(double)>(v);
v = specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: double pB(int)>(v);
v = v * v;
v = specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: double kB(int)>(v);
v = v / v;
return v;
}
public double cumulativeProbability(double)
{
double[] v;
byte v, v;
int v, v;
org.apache.commons.math.random.EmpiricalDistribution v;
double v, v, v, v, v, v, v, v, v, v, v, v, v;
org.apache.commons.math.distribution.RealDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: double;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double min>;
v = v cmpg v;
if v >= 0 goto label;
return 0.0;
label:
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double max>;
v = v cmpl v;
if v < 0 goto label;
return 1.0;
label:
v = specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: int findBin(double)>(v);
v = specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: double pBminus(int)>(v);
v = specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: double pB(int)>(v);
v = virtualinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: double[] getUpperBounds()>();
v = specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: double kB(int)>(v);
if v != 0 goto label;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double min>;
goto label;
label:
v = v - 1;
v = v[v];
label:
v = specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.distribution.RealDistribution k(double)>(v);
v = interfaceinvoke v.<org.apache.commons.math.distribution.RealDistribution: double cumulativeProbability(double)>(v);
v = interfaceinvoke v.<org.apache.commons.math.distribution.RealDistribution: double cumulativeProbability(double)>(v);
v = v - v;
v = v / v;
v = v * v;
v = v + v;
return v;
}
public double inverseCumulativeProbability(double) throws org.apache.commons.math.exception.OutOfRangeException
{
java.lang.Double v;
double[] v;
java.lang.Integer v, v;
org.apache.commons.math.exception.OutOfRangeException v;
byte v, v, v, v, v, v;
int v, v;
org.apache.commons.math.random.EmpiricalDistribution v;
double v, v, v, v, v, v, v, v, v, v, v, v, v, v;
java.util.List v;
java.lang.Object v;
org.apache.commons.math.distribution.RealDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: double;
v = v cmpg 0.0;
if v < 0 goto label;
v = v cmpl 1.0;
if v <= 0 goto label;
label:
v = new org.apache.commons.math.exception.OutOfRangeException;
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)>(1);
specialinvoke v.<org.apache.commons.math.exception.OutOfRangeException: void <init>(java.lang.Number,java.lang.Number,java.lang.Number)>(v, v, v);
throw v;
label:
v = v cmpl 0.0;
if v != 0 goto label;
v = virtualinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: double getSupportLowerBound()>();
return v;
label:
v = v cmpl 1.0;
if v != 0 goto label;
v = virtualinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: double getSupportUpperBound()>();
return v;
label:
v = 0;
label:
v = specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: double cumBinP(int)>(v);
v = v cmpg v;
if v >= 0 goto label;
v = v + 1;
goto label;
label:
v = v.<org.apache.commons.math.random.EmpiricalDistribution: java.util.List binStats>;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = virtualinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.distribution.RealDistribution getKernel(org.apache.commons.math.stat.descriptive.SummaryStatistics)>(v);
v = specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: double kB(int)>(v);
v = virtualinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: double[] getUpperBounds()>();
if v != 0 goto label;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double min>;
goto label;
label:
v = v - 1;
v = v[v];
label:
v = interfaceinvoke v.<org.apache.commons.math.distribution.RealDistribution: double cumulativeProbability(double)>(v);
v = specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: double pB(int)>(v);
v = specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: double pBminus(int)>(v);
v = v - v;
v = v cmpg 0.0;
if v > 0 goto label;
return v;
label:
v = v * v;
v = v / v;
v = v + v;
v = interfaceinvoke v.<org.apache.commons.math.distribution.RealDistribution: double inverseCumulativeProbability(double)>(v);
return v;
}
public double getNumericalMean()
{
org.apache.commons.math.stat.descriptive.SummaryStatistics v;
org.apache.commons.math.random.EmpiricalDistribution v;
double v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.stat.descriptive.SummaryStatistics sampleStats>;
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.SummaryStatistics: double getMean()>();
return v;
}
public double getNumericalVariance()
{
org.apache.commons.math.stat.descriptive.SummaryStatistics v;
org.apache.commons.math.random.EmpiricalDistribution v;
double v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.stat.descriptive.SummaryStatistics sampleStats>;
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.SummaryStatistics: double getVariance()>();
return v;
}
public double getSupportLowerBound()
{
org.apache.commons.math.random.EmpiricalDistribution v;
double v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double min>;
return v;
}
public double getSupportUpperBound()
{
org.apache.commons.math.random.EmpiricalDistribution v;
double v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double max>;
return v;
}
public boolean isSupportLowerBoundInclusive()
{
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
return 1;
}
public boolean isSupportUpperBoundInclusive()
{
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
return 1;
}
public boolean isSupportConnected()
{
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
return 1;
}
public double sample()
{
org.apache.commons.math.random.EmpiricalDistribution v;
double v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v = virtualinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: double getNextValue()>();
return v;
}
public void reseedRandomGenerator(long)
{
org.apache.commons.math.random.RandomDataGenerator v;
long v;
org.apache.commons.math.random.EmpiricalDistribution v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: long;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.random.RandomDataGenerator randomData>;
virtualinvoke v.<org.apache.commons.math.random.RandomDataGenerator: void reSeed(long)>(v);
return;
}
private double pB(int)
{
double[] v, v, v;
int v, v;
org.apache.commons.math.random.EmpiricalDistribution v;
double v, v, v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: int;
if v != 0 goto label;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double[] upperBounds>;
v = v[0];
goto label;
label:
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double[] upperBounds>;
v = v[v];
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double[] upperBounds>;
v = v - 1;
v = v[v];
v = v - v;
label:
return v;
}
private double pBminus(int)
{
double[] v;
int v, v;
org.apache.commons.math.random.EmpiricalDistribution v;
double v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: int;
if v != 0 goto label;
v = 0.0;
goto label;
label:
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double[] upperBounds>;
v = v - 1;
v = v[v];
label:
return v;
}
private double kB(int)
{
double[] v;
java.util.List v;
int v, v;
java.lang.Object v;
org.apache.commons.math.distribution.RealDistribution v;
org.apache.commons.math.random.EmpiricalDistribution v;
double v, v, v, v, v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: int;
v = virtualinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: double[] getUpperBounds()>();
v = v.<org.apache.commons.math.random.EmpiricalDistribution: java.util.List binStats>;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = virtualinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.distribution.RealDistribution getKernel(org.apache.commons.math.stat.descriptive.SummaryStatistics)>(v);
if v != 0 goto label;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double min>;
v = v[0];
v = interfaceinvoke v.<org.apache.commons.math.distribution.RealDistribution: double cumulativeProbability(double,double)>(v, v);
goto label;
label:
v = v - 1;
v = v[v];
v = v[v];
v = interfaceinvoke v.<org.apache.commons.math.distribution.RealDistribution: double cumulativeProbability(double,double)>(v, v);
label:
return v;
}
private org.apache.commons.math.distribution.RealDistribution k(double)
{
java.util.List v;
int v;
java.lang.Object v;
org.apache.commons.math.distribution.RealDistribution v;
org.apache.commons.math.random.EmpiricalDistribution v;
double v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: double;
v = specialinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: int findBin(double)>(v);
v = v.<org.apache.commons.math.random.EmpiricalDistribution: java.util.List binStats>;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = virtualinvoke v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.distribution.RealDistribution getKernel(org.apache.commons.math.stat.descriptive.SummaryStatistics)>(v);
return v;
}
private double cumBinP(int)
{
double[] v;
int v;
org.apache.commons.math.random.EmpiricalDistribution v;
double v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: int;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: double[] upperBounds>;
v = v[v];
return v;
}
protected org.apache.commons.math.distribution.RealDistribution getKernel(org.apache.commons.math.stat.descriptive.SummaryStatistics)
{
org.apache.commons.math.random.RandomDataGenerator v;
org.apache.commons.math.stat.descriptive.SummaryStatistics v;
org.apache.commons.math.distribution.NormalDistribution v;
org.apache.commons.math.random.RandomGenerator v;
org.apache.commons.math.random.EmpiricalDistribution v;
double v, v;
v := @this: org.apache.commons.math.random.EmpiricalDistribution;
v := @parameter: org.apache.commons.math.stat.descriptive.SummaryStatistics;
v = new org.apache.commons.math.distribution.NormalDistribution;
v = v.<org.apache.commons.math.random.EmpiricalDistribution: org.apache.commons.math.random.RandomDataGenerator randomData>;
v = virtualinvoke v.<org.apache.commons.math.random.RandomDataGenerator: org.apache.commons.math.random.RandomGenerator getRandomGenerator()>();
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.SummaryStatistics: double getMean()>();
v = virtualinvoke v.<org.apache.commons.math.stat.descriptive.SummaryStatistics: double getStandardDeviation()>();
specialinvoke v.<org.apache.commons.math.distribution.NormalDistribution: void <init>(org.apache.commons.math.random.RandomGenerator,double,double,double)>(v, v, v, 1.0E-9);
return v;
}
}