|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.math3.analysis.interpolation.MicrosphereInterpolator
public class MicrosphereInterpolator
Interpolator that implements the algorithm described in William Dudziak's MS thesis.
Field Summary | |
---|---|
static int |
DEFAULT_BRIGHTNESS_EXPONENT
Default exponent used the weights calculation. |
static int |
DEFAULT_MICROSPHERE_ELEMENTS
Default number of surface elements that composes the microsphere. |
Constructor Summary | |
---|---|
MicrosphereInterpolator()
Create a microsphere interpolator with default settings. |
|
MicrosphereInterpolator(int elements,
int exponent)
Create a microsphere interpolator. |
Method Summary | |
---|---|
MultivariateFunction |
interpolate(double[][] xval,
double[] yval)
Computes an interpolating function for the data set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_MICROSPHERE_ELEMENTS
public static final int DEFAULT_BRIGHTNESS_EXPONENT
Constructor Detail |
---|
public MicrosphereInterpolator()
MicrosphereInterpolator(MicrosphereInterpolator.DEFAULT_MICROSPHERE_ELEMENTS,
MicrosphereInterpolator.DEFAULT_BRIGHTNESS_EXPONENT)
.
public MicrosphereInterpolator(int elements, int exponent) throws NotPositiveException, NotStrictlyPositiveException
elements
- Number of surface elements of the microsphere.exponent
- Exponent used in the power law that computes the
weights (distance dimming factor) of the sample data.
NotPositiveException
- if exponent < 0
.
NotStrictlyPositiveException
- if elements <= 0
.Method Detail |
---|
public MultivariateFunction interpolate(double[][] xval, double[] yval) throws DimensionMismatchException, NoDataException, NullArgumentException
interpolate
in interface MultivariateInterpolator
xval
- the arguments for the interpolation points.
xval[i][0]
is the first component of interpolation point
i
, xval[i][1]
is the second component, and so on
until xval[i][d-1]
, the last component of that interpolation
point (where d
is thus the dimension of the space).yval
- the values for the interpolation points
DimensionMismatchException
- when the array dimensions are not consistent.
NoDataException
- if an
array has zero-length.
NullArgumentException
- if
the arguments are null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |