Search in sources :

Example 16 with SpeedTag

use of uk.ac.sussex.gdsc.test.junit5.SpeedTag in project GDSC-SMLM by aherbert.

the class ConvolutionTest method doDoubleSpeedTest.

@SpeedTag
@SeededTest
void doDoubleSpeedTest(RandomSeed seed) {
    Assumptions.assumeTrue(logger.isLoggable(Level.INFO));
    Assumptions.assumeTrue(TestSettings.allow(TestComplexity.HIGH));
    final UniformRandomProvider rg = RngUtils.create(seed.getSeed());
    int size = 10;
    for (int i = 0; i < sizeLoops; i++) {
        double sd = 0.5;
        for (int j = 0; j < sdLoops; j++) {
            doubleSpeedTest(rg, size, sd);
            sd *= 2;
        }
        size *= 2;
    }
}
Also used : UniformRandomProvider(org.apache.commons.rng.UniformRandomProvider) SpeedTag(uk.ac.sussex.gdsc.test.junit5.SpeedTag) SeededTest(uk.ac.sussex.gdsc.test.junit5.SeededTest)

Aggregations

SpeedTag (uk.ac.sussex.gdsc.test.junit5.SpeedTag)16 SeededTest (uk.ac.sussex.gdsc.test.junit5.SeededTest)13 TimingService (uk.ac.sussex.gdsc.test.utils.TimingService)13 UniformRandomProvider (org.apache.commons.rng.UniformRandomProvider)12 TimingResult (uk.ac.sussex.gdsc.test.utils.TimingResult)6 Test (org.junit.jupiter.api.Test)5 LocalList (uk.ac.sussex.gdsc.core.utils.LocalList)3 MultivariateNormalMixtureExpectationMaximization (org.apache.commons.math3.distribution.fitting.MultivariateNormalMixtureExpectationMaximization)2 Gaussian2DFunctionTest (uk.ac.sussex.gdsc.smlm.function.gaussian.Gaussian2DFunctionTest)2 FloatProcessor (ij.process.FloatProcessor)1 ArrayList (java.util.ArrayList)1 Arrays (java.util.Arrays)1 List (java.util.List)1 Level (java.util.logging.Level)1 Logger (java.util.logging.Logger)1 IntStream (java.util.stream.IntStream)1 MixtureMultivariateNormalDistribution (org.apache.commons.math3.distribution.MixtureMultivariateNormalDistribution)1 MultivariateNormalDistribution (org.apache.commons.math3.distribution.MultivariateNormalDistribution)1 Array2DRowRealMatrix (org.apache.commons.math3.linear.Array2DRowRealMatrix)1 Covariance (org.apache.commons.math3.stat.correlation.Covariance)1