public class oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator extends java.lang.Object implements oadd.org.apache.commons.math.analysis.interpolation.MultivariateRealInterpolator
{
public static final int DEFAULT_MICROSPHERE_ELEMENTS;
public static final int DEFAULT_BRIGHTNESS_EXPONENT;
private int microsphereElements;
private int brightnessExponent;
public void <init>()
{
oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator v;
v := @this: oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator;
specialinvoke v.<oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator: void <init>(int,int)>(2000, 2);
return;
}
public void <init>(int, int)
{
int v, v;
oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator v;
v := @this: oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator;
v := @parameter: int;
v := @parameter: int;
specialinvoke v.<java.lang.Object: void <init>()>();
virtualinvoke v.<oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator: void setMicropshereElements(int)>(v);
virtualinvoke v.<oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator: void setBrightnessExponent(int)>(v);
return;
}
public oadd.org.apache.commons.math.analysis.MultivariateRealFunction interpolate(double[][], double[]) throws oadd.org.apache.commons.math.MathException, java.lang.IllegalArgumentException
{
oadd.org.apache.commons.math.random.UnitSphereRandomVectorGenerator v;
double[] v, v;
oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator v;
oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolatingFunction v;
int v, v, v;
double[][] v;
v := @this: oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator;
v := @parameter: double[][];
v := @parameter: double[];
v = new oadd.org.apache.commons.math.random.UnitSphereRandomVectorGenerator;
v = v[0];
v = lengthof v;
specialinvoke v.<oadd.org.apache.commons.math.random.UnitSphereRandomVectorGenerator: void <init>(int)>(v);
v = new oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolatingFunction;
v = v.<oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator: int brightnessExponent>;
v = v.<oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator: int microsphereElements>;
specialinvoke v.<oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolatingFunction: void <init>(double[][],double[],int,int,oadd.org.apache.commons.math.random.UnitSphereRandomVectorGenerator)>(v, v, v, v, v);
return v;
}
public void setBrightnessExponent(int)
{
int v;
oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator v;
oadd.org.apache.commons.math.exception.NotPositiveException v;
java.lang.Integer v;
v := @this: oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator;
v := @parameter: int;
if v >= 0 goto label;
v = new oadd.org.apache.commons.math.exception.NotPositiveException;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
specialinvoke v.<oadd.org.apache.commons.math.exception.NotPositiveException: void <init>(java.lang.Number)>(v);
throw v;
label:
v.<oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator: int brightnessExponent> = v;
return;
}
public void setMicropshereElements(int)
{
oadd.org.apache.commons.math.exception.NotStrictlyPositiveException v;
int v;
oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator v;
java.lang.Integer v;
v := @this: oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator;
v := @parameter: int;
if v > 0 goto label;
v = new oadd.org.apache.commons.math.exception.NotStrictlyPositiveException;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
specialinvoke v.<oadd.org.apache.commons.math.exception.NotStrictlyPositiveException: void <init>(java.lang.Number)>(v);
throw v;
label:
v.<oadd.org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator: int microsphereElements> = v;
return;
}
}