Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Last active September 15, 2018 12:02
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/ad763432c44d41151bcb074bf95782f3 to your computer and use it in GitHub Desktop.
Save NMZivkovic/ad763432c44d41151bcb074bf95782f3 to your computer and use it in GitHub Desktop.
public interface INeuron
{
int X { get; set; }
int Y { get; set; }
IVector Weights { get; }
double Distance(INeuron neuron);
void SetWeight(int index, double value);
double GetWeight(int index);
void UpdateWeights(IVector input, double distanceDecay, double learningRate);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment