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


absCoeff
An array where the k-th term is the coefficient of the whole k-th absolute function term within the sum.
coefficient
An array where the k-th term is the coefficient of the variable within the k-th absolute function term within the sum (i.e. coefficient as shown above).
constant
An array where the k-th term is the constant shift of the absolute function of the k-th term within the sum (i.e. the constant term as shown above).
exponent
An array where the k-th term is the exponent of the absolute function term within the k-th element of the sum (i.e. n as shown above).
Adds a sum of absolute functions to be used as basis element.

Syntax

Visual Basic (Declaration)  
Public Shared Sub AddAbsoluteSum( _
   ByVal absCoeff() As Double, _
   ByVal coefficient() As Double, _
   ByVal constant() As Double, _
   ByVal exponent() As Double _
) 
Visual Basic (Usage) Copy Code
Dim absCoeff() As Double
Dim coefficient() As Double
Dim constant() As Double
Dim exponent() As Double
 
ForecastEngine.Options.AddAbsoluteSum(absCoeff, coefficient, constant, exponent)
C#  
public static void AddAbsoluteSum( 
   double[] absCoeff,
   double[] coefficient,
   double[] constant,
   double[] exponent
)

Parameters

absCoeff
An array where the k-th term is the coefficient of the whole k-th absolute function term within the sum.
coefficient
An array where the k-th term is the coefficient of the variable within the k-th absolute function term within the sum (i.e. coefficient as shown above).
constant
An array where the k-th term is the constant shift of the absolute function of the k-th term within the sum (i.e. the constant term as shown above).
exponent
An array where the k-th term is the exponent of the absolute function term within the k-th element of the sum (i.e. n as shown above).

Remarks

Where each of the elements of this sum takes the following form:

absCoeff * Absn(coefficient * x + constant)

where the Abs is the absolute functions given by:

  1. Abs(x) = x, if x > 0
  2. Abs(x) = -x, if x < 0

See Also