MATH-1231
Lifted unnecessary type restriction on constructor's "exponent" argument of "MicrosphereInterpolator" and "MicrosphereInterpolatingFunction".
This commit is contained in:
parent
2990f6caad
commit
75c2b24c68
|
@ -54,6 +54,10 @@ If the output is not quite correct, check for invisible trailing spaces!
|
|||
</release>
|
||||
|
||||
<release version="4.0" date="XXXX-XX-XX" description="">
|
||||
<action dev="erans" type="fix" issue="MATH-1231">
|
||||
Lifted unnecessary restriction on constructor's argument of
|
||||
"MicrosphereInterpolator" (package "o.a.c.m.analysis.interpolation").
|
||||
</action>
|
||||
<action dev="luc" type="fix" issue="MATH-1232"> <!-- backported to 3.6 -->
|
||||
Fixed error message for unknown parameter name in ODE.
|
||||
</action>
|
||||
|
|
|
@ -144,7 +144,7 @@ public class MicrosphereInterpolatingFunction
|
|||
*/
|
||||
public MicrosphereInterpolatingFunction(double[][] xval,
|
||||
double[] yval,
|
||||
int brightnessExponent,
|
||||
double brightnessExponent,
|
||||
int microsphereElements,
|
||||
UnitSphereRandomVectorGenerator rand)
|
||||
throws DimensionMismatchException,
|
||||
|
|
|
@ -40,7 +40,7 @@ public class MicrosphereInterpolator
|
|||
/**
|
||||
* Default exponent used the weights calculation.
|
||||
*/
|
||||
public static final int DEFAULT_BRIGHTNESS_EXPONENT = 2;
|
||||
public static final double DEFAULT_BRIGHTNESS_EXPONENT = 2d;
|
||||
/**
|
||||
* Number of surface elements of the microsphere.
|
||||
*/
|
||||
|
@ -49,7 +49,7 @@ public class MicrosphereInterpolator
|
|||
* Exponent used in the power law that computes the weights of the
|
||||
* sample data.
|
||||
*/
|
||||
private final int brightnessExponent;
|
||||
private final double brightnessExponent;
|
||||
|
||||
/**
|
||||
* Create a microsphere interpolator with default settings.
|
||||
|
@ -70,7 +70,7 @@ public class MicrosphereInterpolator
|
|||
* @throws NotStrictlyPositiveException if {@code elements <= 0}.
|
||||
*/
|
||||
public MicrosphereInterpolator(final int elements,
|
||||
final int exponent)
|
||||
final double exponent)
|
||||
throws NotPositiveException,
|
||||
NotStrictlyPositiveException {
|
||||
if (exponent < 0) {
|
||||
|
|
|
@ -96,7 +96,7 @@ public final class MicrosphereInterpolatorTest {
|
|||
}
|
||||
};
|
||||
|
||||
MultivariateInterpolator interpolator = new MicrosphereInterpolator();
|
||||
MultivariateInterpolator interpolator = new MicrosphereInterpolator(567, 0.89);
|
||||
|
||||
// Interpolating points in [-10, 10][-10, 10] by steps of 2.
|
||||
final int n = 121;
|
||||
|
|
Loading…
Reference in New Issue