| 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 |
|---|---|
| |
| 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.
coefficientas 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
constantterm 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.
nas shown above).
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:
Abs(x) = x, ifx > 0Abs(x) = -x, ifx < 0