dotnetCHARTING Send comments on this topic.
AddRationalSumOfPowerTerms Method
See Also 
dotnetCHARTING Namespace > ForecastEngine.Options Class : AddRationalSumOfPowerTerms Method


upperRationalCoeff
An array where the k-th term is the coefficient of the (k+1)-th term of the sum of power terms (i.e. a_k) which make up the numerator.
upperRationalExp
An array where the k-th term is the exponent and the variable of the (k+1)-th power term (i.e. n_k) which make up the numerator.
lowerRationalCoeff
An array where the k-th term is the coefficient of the (k+1)-th term of the sum of power terms (i.e. b_k) which make up the denominator.
lowerRationalExp
An array where the k-th term is the exponent and the variable of the (k+1)-th power term (i.e. m_k) which make up the denominator.
Adds a rational expression where the numerator and denominator are both themselves a sum of power terms as defined within AddSumOfPowerTerms to the function basis.

Syntax

Visual Basic (Declaration)  
Public Shared Sub AddRationalSumOfPowerTerms( _
   ByVal upperRationalCoeff() As Double, _
   ByVal upperRationalExp() As Double, _
   ByVal lowerRationalCoeff() As Double, _
   ByVal lowerRationalExp() As Double _
) 
Visual Basic (Usage) Copy Code
Dim upperRationalCoeff() As Double
Dim upperRationalExp() As Double
Dim lowerRationalCoeff() As Double
Dim lowerRationalExp() As Double
 
ForecastEngine.Options.AddRationalSumOfPowerTerms(upperRationalCoeff, upperRationalExp, lowerRationalCoeff, lowerRationalExp)
C#  
public static void AddRationalSumOfPowerTerms( 
   double[] upperRationalCoeff,
   double[] upperRationalExp,
   double[] lowerRationalCoeff,
   double[] lowerRationalExp
)

Parameters

upperRationalCoeff
An array where the k-th term is the coefficient of the (k+1)-th term of the sum of power terms (i.e. a_k) which make up the numerator.
upperRationalExp
An array where the k-th term is the exponent and the variable of the (k+1)-th power term (i.e. n_k) which make up the numerator.
lowerRationalCoeff
An array where the k-th term is the coefficient of the (k+1)-th term of the sum of power terms (i.e. b_k) which make up the denominator.
lowerRationalExp
An array where the k-th term is the exponent and the variable of the (k+1)-th power term (i.e. m_k) which make up the denominator.

Remarks

That is, the rational sum of the power terms takes the form:

( (a_1 * x^n_1) + ... + (a_p * x^n_p) ) / ( (b_1 * x^m_1) + ... + (b_q * x^m_q) ),

where a_1,..., a_n, n_1,..., n_p, b_1,..., b_q are real numbers and x is the real variable.

See Also