QuasiSigmoidDecayFunction { public double value(long numCall) { return scale * sigmoid.value(numCall); } QuasiSigmoidDecayFunction(double initValue,
                                     double slope,
                                     long numCall); double value(long numCall);  }
@Test public void testTrivial() { final int n = 65; final double init = 4; final double slope = -1e-1; final QuasiSigmoidDecayFunction f = new QuasiSigmoidDecayFunction(init, slope, n); Assert.assertEquals(init, f.value(0), 0d); Assert.assertEquals(slope, f.value(n + 1) - f.value(n), 1e-4); Assert.assertEquals(0, f.value(Long.MAX_VALUE), 0d); }