public override Vector <double> CalculateOutput(Vector <double> signal) { LastSignal = signal; LastOutput = IncomingWeights.Multiply(signal); // weighted input if (HasBias) { LastOutput = LastOutput.Add(BiasWeights); // weighted input with bias } LastOutput.MapInplace(Activation.Calc); // neuron activations (neuron outputs) return(LastOutput.Clone()); }
public static void Add(object outputObject) { LastOutput.Add(outputObject); }