Class ContinuedFraction
A class for evaluating continued fractions
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Math
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
public abstract class ContinuedFraction
Methods
Evaluate(Double)
Evaluates the continued fraction.
Declaration
protected double Evaluate(double epsilon)
Parameters
Type | Name | Description |
---|---|---|
Double | epsilon | The convergence tolerance. |
Returns
Type | Description |
---|---|
Double | The value of the fraction |
GetDenominator(Int32)
Gets the denominator for the current term.
Declaration
public abstract double GetDenominator(int n)
Parameters
Type | Name | Description |
---|---|---|
Int32 | n | The iteration - must be greater than 0. |
Returns
Type | Description |
---|---|
Double | The denominator for the current term. |
GetNumerator(Int32)
Gets the numerator for the current term.
Declaration
public abstract double GetNumerator(int n)
Parameters
Type | Name | Description |
---|---|---|
Int32 | n | The iteration - must be greater than 0. |
Returns
Type | Description |
---|---|
Double | The numerator for the current term. |