use of uk.ac.sussex.gdsc.smlm.function.TurboLog2 in project GDSC-SMLM by aherbert.
the class LvmGradientProcedureTest method gradientProcedureFastLogMleCannotComputeGradientWithHighPrecision.
@Disabled("This test now passes as the tolerance for computing the gradient has been lowered " + " so that the tests pass under a stress test using many different random seeds.")
@SeededTest
void gradientProcedureFastLogMleCannotComputeGradientWithHighPrecision(RandomSeed seed) {
// Try different precision
for (int n = FastLog.N; n < 23; n++) {
try {
// logger.fine(FunctionUtils.getSupplier("Precision n=%d", n);
fastLog = new TurboLog2(n);
gradientProcedureComputesGradient(seed, new SingleFreeCircularErfGaussian2DFunction(blockWidth, blockWidth), Type.FAST_LOG_MLE, false);
} catch (final AssertionError ex) {
continue;
} finally {
// Reset
fastLog = null;
}
return;
}
Assertions.fail();
}
Aggregations