Computes output value of neuron.
Accord.Neuro (in Accord.Neuro.dll) Version: 3.8.0
Syntax Request Example
public override double Compute(
Public Overrides Function Compute (
input As Double()
) As Double
- Type: SystemDouble
Returns neuron's output value.
|ArgumentException||Wrong length of the input vector, which is not
equal to the expected value.|Remarks
The output value of distance neuron is equal to the distance
between its weights and inputs - sum of absolute differences.
The output value is also stored in Output
|The method may be called safely from multiple threads to compute neuron's
output value for the specified input values. However, the value of
Output property in multi-threaded environment is not predictable,
since it may hold neuron's output computed from any of the caller threads. Multi-threaded
access to the method is useful in those cases when it is required to improve performance
by utilizing several threads and the computation is based on the immediate return value
of the method, but not on neuron's output property.|See Also