Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created January 27, 2018 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/ca8f5fd67f86686d62ba0f97624000ef to your computer and use it in GitHub Desktop.
Save NMZivkovic/ca8f5fd67f86686d62ba0f97624000ef to your computer and use it in GitHub Desktop.
public class WeightedSumFunction : IInputFunction
{
public double CalculateInput(List<ISynapse> inputs)
{
return inputs.Select(x => x.Weight * x.GetOutput()).Sum();
}
}
@RLKane47
Copy link

ANN download

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment