Click or drag to resize
Accord.NET (logo)

BernoulliFunctionGenerate2 Method

Samples a value from the function given a function output value.

Namespace:  Accord.Neuro.ActivationFunctions
Assembly:  Accord.Neuro (in Accord.Neuro.dll) Version: 3.8.0
Syntax
public double Generate2(
	double y
)
Request Example View Source

Parameters

y
Type: SystemDouble
The function output value. This is the value which was obtained with the help of the Function(Double) method.

Return Value

Type: Double
Draws a random value from the function.

Implements

IStochasticFunctionGenerate2(Double)
Remarks

The method calculates the same output value as the Generate(Double) method, but it takes not the input x value itself, but the function value, which was calculated previously with help of the Function(Double) method.

See Also