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