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


sinCoeff
An array where the k-th term is the coefficient of the whole k-th cosine term within the sum.
coefficient
An array where the k-th term is the coefficient of the variable within the k-th sine term within the sum (i.e. coefficient as shown above).
constant
An array where the k-th term is the constant shift of the sine 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 sine term within the k-th element of the sum (i.e. n as shown above).
Adds a sum of Sine functions to the used as basis elements.

Syntax

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

Parameters

sinCoeff
An array where the k-th term is the coefficient of the whole k-th cosine term within the sum.
coefficient
An array where the k-th term is the coefficient of the variable within the k-th sine term within the sum (i.e. coefficient as shown above).
constant
An array where the k-th term is the constant shift of the sine 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 sine term within the k-th element of the sum (i.e. n as shown above).

Remarks

Please note that each term of the sum which makes up the basis function will take to form:

sinCoeff * (sinn (coefficient * x + constant)),

where the Sine function is in terms of radians.

Notes on the Radian measure

Radians are a means by which to describe the angle and are related to the more commonly used degrees as follows:

360 degrees = 2 * Pi * radians

therefore, 1 radian = 180 / Pi degrees = 57.295... degrees.

See Also