WebCab Probability and Statistics for Delphi (.NET) v3.6

FactorModel.AddStepSum Method 

Adds a sum of step functions to be used as a basis element.

public 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 < 0
  2. Step(x) = 0, if x = 0
  3. Step(x) = 1, if x > 0

See Also

FactorModel Class | WebCab.Libraries.Statistics.CurveFitting Namespace