@@ -0,0 +1,1947 @@
+package ai.nxt.seqpred.util;%0A%0Aimport junit.framework.TestCase;%0Aimport org.junit.Test;%0A%0A/**%0A * Created by Jeppe Hallgren on 28/06/15.%0A */%0Apublic class NnUtilTest extends TestCase %7B%0A%0A    @Test%0A    public void testSigmoidFunction() throws Exception %7B%0A        assertTrue(NnUtil.sigmoidFunction(5) %3C 1);%0A        assertTrue(NnUtil.sigmoidFunction(5) %3E 0.99);%0A        assertTrue(NnUtil.sigmoidFunction(0) %3E 0.49999);%0A        assertTrue(NnUtil.sigmoidFunction(0) %3C 5.00001);%0A        assertTrue(NnUtil.sigmoidFunction(-5) %3E 0.006);%0A        assertTrue(NnUtil.sigmoidFunction(-5) %3C 0.007);%0A    %7D%0A%0A    @Test%0A    public void testDerivativeOfSigmoidFunction() throws Exception %7B%0A        assertTrue(NnUtil.derivativeOfSigmoidFunction(5) %3E 0.006);%0A        assertTrue(NnUtil.derivativeOfSigmoidFunction(5) %3C 0.007);%0A        assertTrue(NnUtil.derivativeOfSigmoidFunction(0) %3E 0.24449);%0A        assertTrue(NnUtil.derivativeOfSigmoidFunction(0) %3C 0.25001);%0A        assertTrue(NnUtil.derivativeOfSigmoidFunction(-5) %3E 0.006);%0A        assertTrue(NnUtil.derivativeOfSigmoidFunction(-5) %3C 0.007);%0A    %7D%0A%0A    @Test%0A    public void testTanhFunction() throws Exception %7B%0A        assertTrue(NnUtil.tanhFunction(5) %3E 0.9999);%0A        assertTrue(NnUtil.tanhFunction(5) %3C 1);%0A        assertTrue(NnUtil.tanhFunction(0) %3E -0.00001);%0A        assertTrue(NnUtil.tanhFunction(0) %3C 0.00001);%0A        assertTrue(NnUtil.tanhFunction(-5) %3E -1);%0A        assertTrue(NnUtil.tanhFunction(-5) %3C -0.9999);%0A    %7D%0A%0A    @Test%0A    public void testDerivativeOfTanhFunction() throws Exception %7B%0A        assertTrue(NnUtil.derivativeOfTanhFunction(5) %3E 0.00018);%0A        assertTrue(NnUtil.derivativeOfTanhFunction(5) %3C 0.00019);%0A        assertTrue(NnUtil.derivativeOfTanhFunction(0) %3E 0.99999);%0A        assertTrue(NnUtil.derivativeOfTanhFunction(0) %3C 1.00001);%0A        assertTrue(NnUtil.derivativeOfTanhFunction(-5) %3E 0.00018);%0A        assertTrue(NnUtil.derivativeOfTanhFunction(-5) %3C 0.00019);%0A    %7D%0A%7D

set up testing