Function pecsim::switchon

Function Documentation

double pecsim::switchon(double x, double a, double da)

Switching function varies from 0 to 1 to within 0.1% as the arguement x passes from (a-da) to (a+da).

Parameters:
  • x – the independent variable

  • a – the center of the switch

  • da – the range over which the function turns on

Returns:

double