From 69a55bfa274505390de49120bec5db58a27d6b6f Mon Sep 17 00:00:00 2001 From: Alex Herbert Date: Thu, 14 Nov 2024 16:44:07 +0000 Subject: [PATCH] Change to Commons Numbers core Precision --- .../nonlinear/gradient/FastMleGradient2ProcedureTest.java | 2 +- .../gradient/FastMleJacobianGradient2ProcedureTest.java | 2 +- .../fitting/nonlinear/gradient/GradientCalculatorSpeedTest.java | 2 +- .../fitting/nonlinear/gradient/LsqLvmGradientProcedureTest.java | 2 +- .../fitting/nonlinear/gradient/LvmGradientProcedureTest.java | 2 +- .../src/test/java/uk/ac/sussex/gdsc/smlm/function/ErfTest.java | 2 +- .../sussex/gdsc/smlm/function/PoissonLikelihoodWrapperTest.java | 2 +- .../sussex/gdsc/smlm/function/ScmosLikelihoodWrapperTest.java | 2 +- .../gdsc/smlm/function/cspline/CubicSplineFunctionTest.java | 2 +- .../gdsc/smlm/function/gaussian/Gaussian2DFunctionTest.java | 2 +- .../smlm/function/gaussian/erf/ErfGaussian2DFunctionTest.java | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/FastMleGradient2ProcedureTest.java b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/FastMleGradient2ProcedureTest.java index 77fcd8afd..32c97559f 100644 --- a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/FastMleGradient2ProcedureTest.java +++ b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/FastMleGradient2ProcedureTest.java @@ -27,7 +27,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.logging.Logger; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.numbers.core.Precision; import org.apache.commons.rng.UniformRandomProvider; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; diff --git a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/FastMleJacobianGradient2ProcedureTest.java b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/FastMleJacobianGradient2ProcedureTest.java index 8da1624c4..3c9d41658 100644 --- a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/FastMleJacobianGradient2ProcedureTest.java +++ b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/FastMleJacobianGradient2ProcedureTest.java @@ -25,7 +25,7 @@ package uk.ac.sussex.gdsc.smlm.fitting.nonlinear.gradient; import java.util.ArrayList; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.numbers.core.Precision; import org.ejml.data.DenseMatrix64F; import org.junit.jupiter.api.Assumptions; import org.junit.jupiter.api.Test; diff --git a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/GradientCalculatorSpeedTest.java b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/GradientCalculatorSpeedTest.java index 1f1103d57..dc3e3f09d 100644 --- a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/GradientCalculatorSpeedTest.java +++ b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/GradientCalculatorSpeedTest.java @@ -27,7 +27,7 @@ import java.util.ArrayList; import java.util.logging.Level; import java.util.logging.Logger; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.numbers.core.Precision; import org.apache.commons.rng.UniformRandomProvider; import org.apache.commons.rng.sampling.distribution.PoissonSampler; import org.apache.commons.statistics.distribution.PoissonDistribution; diff --git a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/LsqLvmGradientProcedureTest.java b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/LsqLvmGradientProcedureTest.java index 20cdbf37c..663c5d59c 100644 --- a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/LsqLvmGradientProcedureTest.java +++ b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/LsqLvmGradientProcedureTest.java @@ -28,7 +28,7 @@ import java.util.logging.Level; import java.util.logging.LogRecord; import java.util.logging.Logger; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.numbers.core.Precision; import org.apache.commons.rng.UniformRandomProvider; import org.ejml.data.DenseMatrix64F; import org.junit.jupiter.api.AfterAll; diff --git a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/LvmGradientProcedureTest.java b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/LvmGradientProcedureTest.java index 0354fe834..f279408f6 100644 --- a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/LvmGradientProcedureTest.java +++ b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/fitting/nonlinear/gradient/LvmGradientProcedureTest.java @@ -27,7 +27,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.logging.Logger; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.numbers.core.Precision; import org.apache.commons.rng.UniformRandomProvider; import org.apache.commons.rng.sampling.distribution.SharedStateContinuousSampler; import org.ejml.data.DenseMatrix64F; diff --git a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/ErfTest.java b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/ErfTest.java index 5cea77fd6..80522458f 100644 --- a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/ErfTest.java +++ b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/ErfTest.java @@ -25,7 +25,7 @@ package uk.ac.sussex.gdsc.smlm.function; import java.util.logging.Logger; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.numbers.core.Precision; import org.apache.commons.numbers.gamma.ErfDifference; import org.apache.commons.rng.UniformRandomProvider; import org.junit.jupiter.api.AfterAll; diff --git a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/PoissonLikelihoodWrapperTest.java b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/PoissonLikelihoodWrapperTest.java index 5415cfa35..68ed2028f 100644 --- a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/PoissonLikelihoodWrapperTest.java +++ b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/PoissonLikelihoodWrapperTest.java @@ -29,7 +29,7 @@ import java.util.logging.Logger; import org.apache.commons.math3.analysis.UnivariateFunction; import org.apache.commons.math3.analysis.integration.SimpsonIntegrator; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.numbers.core.Precision; import org.apache.commons.statistics.distribution.PoissonDistribution; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; diff --git a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/ScmosLikelihoodWrapperTest.java b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/ScmosLikelihoodWrapperTest.java index f2622cdb0..d88fbeabf 100644 --- a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/ScmosLikelihoodWrapperTest.java +++ b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/ScmosLikelihoodWrapperTest.java @@ -32,7 +32,7 @@ import java.util.logging.Logger; import org.apache.commons.math3.analysis.integration.SimpsonIntegrator; import org.apache.commons.math3.analysis.integration.UnivariateIntegrator; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.numbers.core.Precision; import org.apache.commons.rng.UniformRandomProvider; import org.apache.commons.rng.sampling.distribution.ContinuousSampler; import org.apache.commons.rng.sampling.distribution.DiscreteSampler; diff --git a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/cspline/CubicSplineFunctionTest.java b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/cspline/CubicSplineFunctionTest.java index 82192f214..b7fc9a9f4 100644 --- a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/cspline/CubicSplineFunctionTest.java +++ b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/cspline/CubicSplineFunctionTest.java @@ -26,7 +26,7 @@ import java.util.Arrays; import java.util.logging.Logger; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.numbers.core.Precision; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assumptions; diff --git a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/gaussian/Gaussian2DFunctionTest.java b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/gaussian/Gaussian2DFunctionTest.java index 6f65d0ddf..2730297ff 100644 --- a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/gaussian/Gaussian2DFunctionTest.java +++ b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/gaussian/Gaussian2DFunctionTest.java @@ -26,7 +26,7 @@ import java.util.Arrays; import java.util.logging.Logger; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.numbers.core.Precision; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assumptions; diff --git a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/gaussian/erf/ErfGaussian2DFunctionTest.java b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/gaussian/erf/ErfGaussian2DFunctionTest.java index c6f40e88a..f20613b06 100644 --- a/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/gaussian/erf/ErfGaussian2DFunctionTest.java +++ b/gdsc-smlm/src/test/java/uk/ac/sussex/gdsc/smlm/function/gaussian/erf/ErfGaussian2DFunctionTest.java @@ -24,7 +24,7 @@ package uk.ac.sussex.gdsc.smlm.function.gaussian.erf; -import org.apache.commons.math3.util.Precision; +import org.apache.commons.numbers.core.Precision; import org.ejml.data.DenseMatrix64F; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assumptions;