Compute output vector of the network.

Namespace:  AForge.Neuro
Assembly:  AForge.Neuro (in AForge.Neuro.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public virtual double[] Compute(
	double[] input
)

Parameters

input
Type: array< System..::.Double >[]()[]
Input vector.

Return Value

Returns network's output vector.

Remarks

The actual network's output vecor is determined by layers, which comprise the layer - represents an output vector of the last layer of the network. The output vector is also stored in Output property.

Note:The method may be called safely from multiple threads to compute network'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 network'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 network's output property.

See Also