-
-
Save NMZivkovic/ca8f5fd67f86686d62ba0f97624000ef 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 WeightedSumFunction : IInputFunction | |
{ | |
public double CalculateInput(List<ISynapse> inputs) | |
{ | |
return inputs.Select(x => x.Weight * x.GetOutput()).Sum(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ANN download