C# Class Accord.Statistics.Models.Regression.LogisticRegression

Inheritance: ICloneable
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
GetConfidenceInterval ( int index ) : DoubleRange

Gets the 95% confidence interval for the Odds Ratio for a given coefficient.

GetOddsRatio ( int index ) : double

Gets the Odds Ratio for a given coefficient.

The odds ratio can be computed raising Euler's number (e ~~ 2.71) to the power of the associated coefficient.

LogisticRegression ( ) : System

Creates a new Logistic Regression Model.

Private Methods

Method Description
FromWeights ( double weights ) : LogisticRegression
FromWeights ( double weights, double intercept ) : LogisticRegression
LogisticRegression ( int inputs ) : System
LogisticRegression ( int inputs, double intercept ) : System

Method Details

GetConfidenceInterval() public method

Gets the 95% confidence interval for the Odds Ratio for a given coefficient.
public GetConfidenceInterval ( int index ) : DoubleRange
index int /// The coefficient's index. The first value /// (at zero index) is the intercept value. ///
return AForge.DoubleRange

GetOddsRatio() public method

Gets the Odds Ratio for a given coefficient.
The odds ratio can be computed raising Euler's number (e ~~ 2.71) to the power of the associated coefficient.
public GetOddsRatio ( int index ) : double
index int /// The coefficient's index. The first value /// (at zero index) is the intercept value. ///
return double

LogisticRegression() public method

Creates a new Logistic Regression Model.
public LogisticRegression ( ) : System
return System