| WebCab Probability and Statistics for .NET v3.6 | |
FactorModel.AddStepSum Method
Adds a sum of step functions to be used as a basis element.
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:
Step(x) = 0, if x < 0Step(x) = 0, if x = 0Step(x) = 1, if x > 0
See Also
FactorModel Class | WebCab.Libraries.Statistics.CurveFitting Namespace