C# Class Accord.Neuro.Neurons.StochasticNeuron

Inheritance: ActivationNeuron
Show file Open project: accord-net/framework

Public Methods

Method Description
Compute ( double input ) : double

Computes output value of neuron.

Generate ( double input ) : double

Samples the neuron output considering the stochastic activation function.

StochasticNeuron ( int inputs, IStochasticFunction function ) : System

Initializes a new instance of the StochasticNeuron class.

Method Details

Compute() public method

Computes output value of neuron.
public Compute ( double input ) : double
input double An input vector.
return double

Generate() public method

Samples the neuron output considering the stochastic activation function.
public Generate ( double input ) : double
input double An input vector.
return double

StochasticNeuron() public method

Initializes a new instance of the StochasticNeuron class.
public StochasticNeuron ( int inputs, IStochasticFunction function ) : System
inputs int Number of inputs for the neuron.
function IStochasticFunction Activation function for the neuron.
return System