CloudAlgorithm { protected double nn2Probability(double nnResult) { double a = (param2 * (nnResult + param1)) * (-1); if (a < (-80)) { a = -80; } else if (a > 80) { a = 80; } return 1. / (1. + Math.exp(a)); } CloudAlgorithm(File auxDataDir, String configName); String getValidExpression(); double computeCloudProbability(double[] cloudIn);  }
@Test public void testNn2Probability() { double probability = testAlgorithm.nn2Probability(0.004993); assertEquals("probability", 0.01313, probability, 0.00001); }