| Visual Basic (Declaration) | |
|---|---|
Public Shared Sub AddStepSum( _ ByVal stepCoeff() As Double, _ ByVal coefficient() As Double, _ ByVal constant() As Double _ ) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
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.
coefficientas 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
constantterm as shown above).
Where each of the elements of the sum takes the following form:
stepCoeff * Step(coefficient * x + constant),
where the Step(x) is given by:
Step(x) = 0, ifx lequ; 0Step(x) = 1, ifx > 0