public static ThresholdNeuron Nand(IEnumerable <ThresholdNeuron> inputs) { var num = inputs.Count(); var nand = new ThresholdNeuron { bias = num, Inputs = inputs.Select(p => new ThresholdNeuron.Input(p, -1)).ToArray() }; return(nand); }
public Input(ThresholdNeuron source, int weight) : this() { this.weight = weight; this.Source = source; }
protected ThresholdNeuronBuilder(ThresholdNeuron builtInstance) { this.builtInstance = builtInstance; }