You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by er...@apache.org on 2021/08/07 20:32:04 UTC
[commons-math] branch master updated: Replace deprecated calls.
This is an automated email from the ASF dual-hosted git repository.
erans pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git
The following commit(s) were added to refs/heads/master by this push:
new 1444d2d Replace deprecated calls.
1444d2d is described below
commit 1444d2d8d18c81f3350719a41c473c7468e46126
Author: Gilles Sadowski <gi...@gmail.com>
AuthorDate: Sat Aug 7 22:31:39 2021 +0200
Replace deprecated calls.
---
.../apache/commons/math4/examples/sofm/chineserings/ChineseRings.java | 2 +-
.../analysis/interpolation/MicrosphereProjectionInterpolator.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/commons-math-examples/examples-sofm/chinese-rings/src/main/java/org/apache/commons/math4/examples/sofm/chineserings/ChineseRings.java b/commons-math-examples/examples-sofm/chinese-rings/src/main/java/org/apache/commons/math4/examples/sofm/chineserings/ChineseRings.java
index 92bf4f8..4289dad 100644
--- a/commons-math-examples/examples-sofm/chinese-rings/src/main/java/org/apache/commons/math4/examples/sofm/chineserings/ChineseRings.java
+++ b/commons-math-examples/examples-sofm/chinese-rings/src/main/java/org/apache/commons/math4/examples/sofm/chineserings/ChineseRings.java
@@ -61,7 +61,7 @@ class ChineseRings {
final UniformRandomProvider rng = RandomSource.create(RandomSource.WELL_19937_C);
// Create two rings lying in xy-plane.
- final UnitSphereSampler unit = new UnitSphereSampler(2, rng);
+ final UnitSphereSampler unit = UnitSphereSampler.of(rng, 2);
final ContinuousUniformSampler radius1
= new ContinuousUniformSampler(rng,
diff --git a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/MicrosphereProjectionInterpolator.java b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/MicrosphereProjectionInterpolator.java
index 9a0c7d0..2708125 100644
--- a/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/MicrosphereProjectionInterpolator.java
+++ b/commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/analysis/interpolation/MicrosphereProjectionInterpolator.java
@@ -83,8 +83,8 @@ public class MicrosphereProjectionInterpolator
maxDarkFraction,
darkThreshold,
background,
- new UnitSphereSampler(dimension,
- RandomSource.MT_64.create())),
+ UnitSphereSampler.of(RandomSource.MT_64.create(),
+ dimension)),
exponent,
sharedSphere,
noInterpolationTolerance);