Threshold activation function.
Threshold
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
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | Initializes a new instance of the Threshold class. |
| Function | 1 | Calculates function value. |
| CalculateDerivative | 1 | The threshold function is not differentiable, so that this method always returns zero. |
| Derivative | 1 | Calculates function derivative (not supported). |
| ToString | 1 | Display this activation function as a text expression. |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| Store | 1 | Gets the XML serializable data model of this threshold function. |
04 Members
Initializes a new instance of the Threshold class.
Double)Calculates function value.
The method calculates function value at point x.
| Name | Type | Description |
|---|---|---|
x | Double | Function input value. |
Function output value, f(x).
Double)The threshold function is not differentiable, so that this method always returns zero.
| Name | Type | Description |
|---|---|---|
x | Double | Function input value. |
Always returns 0.
Double)Calculates function derivative (not supported).
The method is not supported, because it is not possible to calculate derivative of the function.
| Name | Type | Description |
|---|---|---|
x | Double | Input value. |
Always returns 0.
Display this activation function as a text expression.
A text expression in format like Threshold().
Gets the XML serializable data model of this threshold function.
A ActiveFunction data model which its function name is Threshold and no argument is required.