WebCab Probability and Statistics for .NET v3.6

FactorModel.AddAbsoluteSum Method 

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

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

See Also

FactorModel Class | WebCab.Libraries.Statistics.CurveFitting Namespace