public static double Normalize(double source, HillockType type) { switch (type) { case HillockType.Spike: source = (source - GlobleSettings.NeuronPotentialMin) / GlobleSettings.NeuronPotentialRange; break; } return source; }
public ThresholdHeaviside(INeuron hostneuron, double threshold) { this.threshold = threshold; this.hostneuron = hostneuron; type = HillockType.Heaviside; }