Esempio n. 1
0
        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());
        }
Esempio n. 2
0
 public static void Add(object outputObject)
 {
     LastOutput.Add(outputObject);
 }