Created
January 27, 2018 11:45
-
-
Save NMZivkovic/553b8c3dc6049d95968805923a9a7e61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StepActivationFunction : IActivationFunction | |
{ | |
private double _treshold; | |
public StepActivationFunction(double treshold) | |
{ | |
_treshold = treshold; | |
} | |
public double CalculateOutput(double input) | |
{ | |
return Convert.ToDouble(input > _treshold); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment