package com.aelitis.azureus.core.neuronal; public class LogisticActivationFunction implements ActivationFunction { public double getDerivedFunctionValueFor(double x) { return x * (1-x); } public double getValueFor(double x) { return 1.0 / (1.0 + Math.exp(-x)); } }