public class oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs extends oadd.org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic implements java.io.Serializable
{
private static final long serialVersionUID;
private int n;
private double value;
public void <init>()
{
oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs v;
v := @this: oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs;
specialinvoke v.<oadd.org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic: void <init>()>();
v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: double value> = 0.0;
v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: int n> = 0;
return;
}
public void <init>(oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs) throws oadd.org.apache.commons.math.exception.NullArgumentException
{
oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs v, v;
v := @this: oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs;
v := @parameter: oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs;
specialinvoke v.<oadd.org.apache.commons.math.stat.descriptive.AbstractStorelessUnivariateStatistic: void <init>()>();
staticinvoke <oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: void copy(oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs,oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs)>(v, v);
return;
}
public void increment(double)
{
oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs v;
int v, v;
double v, v, v, v;
v := @this: oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs;
v := @parameter: double;
v = v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: double value>;
v = staticinvoke <oadd.org.apache.commons.math.util.FastMath: double log(double)>(v);
v = v + v;
v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: double value> = v;
v = v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: int n>;
v = v + 1;
v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: int n> = v;
return;
}
public double getResult()
{
oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs v;
double v;
v := @this: oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs;
v = v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: double value>;
return v;
}
public long getN()
{
int v;
oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs v;
v := @this: oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs;
v = v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: int n>;
return v;
}
public void clear()
{
oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs v;
v := @this: oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs;
v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: double value> = 0.0;
v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: int n> = 0;
return;
}
public double evaluate(double[], int, int) throws oadd.org.apache.commons.math.exception.MathIllegalArgumentException
{
double[] v;
oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs v;
int v, v, v, v;
boolean v;
double v, v, v;
v := @this: oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs;
v := @parameter: double[];
v := @parameter: int;
v := @parameter: int;
v = #NaN;
v = virtualinvoke v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: boolean test(double[],int,int,boolean)>(v, v, v, 1);
if v == 0 goto label;
v = 0.0;
v = v;
label:
v = v + v;
if v >= v goto label;
v = v[v];
v = staticinvoke <oadd.org.apache.commons.math.util.FastMath: double log(double)>(v);
v = v + v;
v = v + 1;
goto label;
label:
return v;
}
public oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs copy()
{
oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs v, v;
v := @this: oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs;
v = new oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs;
specialinvoke v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: void <init>()>();
staticinvoke <oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: void copy(oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs,oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs)>(v, v);
return v;
}
public static void copy(oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs, oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs) throws oadd.org.apache.commons.math.exception.NullArgumentException
{
oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs v, v;
double[] v;
int v;
double v;
v := @parameter: oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs;
v := @parameter: oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs;
staticinvoke <oadd.org.apache.commons.math.util.MathUtils: void checkNotNull(java.lang.Object)>(v);
staticinvoke <oadd.org.apache.commons.math.util.MathUtils: void checkNotNull(java.lang.Object)>(v);
v = virtualinvoke v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: double[] getDataRef()>();
virtualinvoke v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: void setData(double[])>(v);
v = v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: int n>;
v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: int n> = v;
v = v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: double value>;
v.<oadd.org.apache.commons.math.stat.descriptive.summary.SumOfLogs: double value> = v;
return;
}
}