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