use of uk.ac.sussex.gdsc.smlm.function.DummyGradientFunction in project GDSC-SMLM by aherbert.
the class FastMleGradient2ProcedureTest method gradientProcedureFactoryCreatesOptimisedProcedures.
@Test
void gradientProcedureFactoryCreatesOptimisedProcedures() {
final double[] y = new double[0];
Assertions.assertEquals(FastMleGradient2ProcedureUtils.createUnrolled(y, new DummyGradientFunction(4)).getClass(), FastMleGradient2Procedure4.class);
Assertions.assertEquals(FastMleGradient2ProcedureUtils.createUnrolled(y, new DummyGradientFunction(5)).getClass(), FastMleGradient2Procedure5.class);
Assertions.assertEquals(FastMleGradient2ProcedureUtils.createUnrolled(y, new DummyGradientFunction(6)).getClass(), FastMleGradient2Procedure6.class);
}
Aggregations