nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.MachineLearning / Threshold

Threshold

Full name Microsoft.VisualBasic.MachineLearning.ComponentModel.Activations.Threshold Assembly Microsoft.VisualBasic.MachineLearning Members 3

Threshold activation function.

00 Remarks

The class represents threshold activation function with the next expression:

f(x) = 1, if x >= 0, otherwise 0

Output range of the function: [0, 1].

Functions graph:

01 Syntax

Microsoft.VisualBasic.MachineLearning.ComponentModel.Activations.Threshold

02 Methods

NameOverloadsSummary
.ctor 1 Initializes a new instance of the Threshold class.
Function 1 Calculates function value.
Derivative 1 Calculates function derivative (not supported).

03 Members

method .ctor #
#ctor

Initializes a new instance of the Threshold class.

method Function #
Function(Double)

Calculates function value.

Remarks

The method calculates function value at point x.

Parameters
NameTypeDescription
xDouble

Function input value.

Returns

Function output value, f(x).

method Derivative #
Derivative(Double)

Calculates function derivative (not supported).

Remarks

The method is not supported, because it is not possible to calculate derivative of the function.

Parameters
NameTypeDescription
xDouble

Input value.

Returns

Always returns 0.