C# Класс AForge.Neuro.ThresholdFunction

Threshold activation function.

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:

Наследование: IActivationFunction
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Clone ( ) : object

Creates a new object that is a copy of the current instance.

Derivative ( double x ) : double

Calculates function derivative (not supported).

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

Derivative2 ( double y ) : double

Calculates function derivative (not supported).

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

Function ( double x ) : double

Calculates function value.

The method calculates function value at point x.

ThresholdFunction ( ) : System

Initializes a new instance of the ThresholdFunction class.

Описание методов

Clone() публичный Метод

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
Результат object

Derivative() публичный Метод

Calculates function derivative (not supported).

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

public Derivative ( double x ) : double
x double Input value.
Результат double

Derivative2() публичный Метод

Calculates function derivative (not supported).

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

public Derivative2 ( double y ) : double
y double Input value.
Результат double

Function() публичный Метод

Calculates function value.
The method calculates function value at point x.
public Function ( double x ) : double
x double Function input value.
Результат double

ThresholdFunction() публичный Метод

Initializes a new instance of the ThresholdFunction class.
public ThresholdFunction ( ) : System
Результат System