001    package aima.learning.neural;
002    
003    
004    public class HardLimitActivationFunction implements ActivationFunction {
005    
006            public double activation(double parameter) {
007    
008                    if (parameter < 0.0) {
009                            return 0.0;
010                    } else {
011                            return 1.0;
012                    }
013            }
014    
015            public double deriv(double parameter) {
016    
017                    return 0.0;
018            }
019    
020    }