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


stepCoeff
An array where the k-th term is the coefficient of the whole k-th step function term within the sum.
coefficient
An array where the k-th term is the coefficient of the variable within the k-th step 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 step function of the k-th term within the sum (i.e. the constant term as shown above).
Adds a sum of step functions to be used as a basis element.

Syntax

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

Parameters

stepCoeff
An array where the k-th term is the coefficient of the whole k-th step function term within the sum.
coefficient
An array where the k-th term is the coefficient of the variable within the k-th step 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 step function of the k-th term within the sum (i.e. the constant term as shown above).

Remarks

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

stepCoeff * Step(coefficient * x + constant),

where the Step(x) is given by:

  1. Step(x) = 0, if x lequ; 0
  2. Step(x) = 1, if x > 0

See Also