
aima.core.learning.neural.HardLimitActivationFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aima-core Show documentation
Show all versions of aima-core Show documentation
AIMA-Java Core Algorithms from the book Artificial Intelligence a Modern Approach 3rd Ed.
package aima.core.learning.neural;
/**
* @author Ravi Mohan
*
*/
public class HardLimitActivationFunction implements ActivationFunction {
public double activation(double parameter) {
if (parameter < 0.0) {
return 0.0;
} else {
return 1.0;
}
}
public double deriv(double parameter) {
return 0.0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy