C# Class Accord.Statistics.Links.LogitLinkFunction

Inheritance: ILinkFunction
显示文件 Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
Clone ( ) : object

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

Derivative ( double x ) : double

First derivative of the Inverse function.

The first derivative of the identity link function is given by f'(x) = y * (1.0 - y) where y = f(x) is the Logit function.

Derivative2 ( double y ) : double

First derivative of the mean function expressed in terms of it's output.

The first derivative of the Logit link function in terms of y = f(x) is given by y * (1.0 - y).

Function ( double x ) : double

The Logit link function.

The inverse Logit link function is given by f(x) = (Math.Log(x / (1.0 - x)) - A) / B.

Inverse ( double x ) : double

The Logit mean (activation) function.

The inverse Logit link function is given by g(x) = 1.0 / (1.0 + Math.Exp(-z) in which z = B * x + A.

Log ( double x ) : double

The logarithm of the inverse of the link function.

LogitLinkFunction ( ) : System

Initializes a new instance of the LogitLinkFunction class.

LogitLinkFunction ( double beta, double constant ) : System

Creates a new Logit link function.

Method Details

Clone() public method

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
return object

Derivative() public method

First derivative of the Inverse function.
The first derivative of the identity link function is given by f'(x) = y * (1.0 - y) where y = f(x) is the Logit function.
public Derivative ( double x ) : double
x double The input value.
return double

Derivative2() public method

First derivative of the mean function expressed in terms of it's output.
The first derivative of the Logit link function in terms of y = f(x) is given by y * (1.0 - y).
public Derivative2 ( double y ) : double
y double The reverse transformed value.
return double

Function() public method

The Logit link function.
The inverse Logit link function is given by f(x) = (Math.Log(x / (1.0 - x)) - A) / B.
public Function ( double x ) : double
x double An input value.
return double

Inverse() public method

The Logit mean (activation) function.
The inverse Logit link function is given by g(x) = 1.0 / (1.0 + Math.Exp(-z) in which z = B * x + A.
public Inverse ( double x ) : double
x double A transformed value.
return double

Log() public method

The logarithm of the inverse of the link function.
public Log ( double x ) : double
x double A transformed value.
return double

LogitLinkFunction() public method

Initializes a new instance of the LogitLinkFunction class.
public LogitLinkFunction ( ) : System
return System

LogitLinkFunction() public method

Creates a new Logit link function.
public LogitLinkFunction ( double beta, double constant ) : System
beta double The beta value. Default is 1.
constant double The constant value. Default is 0.
return System