class FormulaSineWave : public feasst::Formula

\(y = shift + amplitude*\sin(2\pi (x - phase)/ width)\)


  • amplitude: the amplitude (deviation from “average”) of the wave (default: 1).

  • width: the width of the periodicity, w, in x units (default: 2 \(\pi\)).

  • phase: shift the wave to the right in units of x (default: 0).

  • shift: shift the wave up in units of y (default: documented below).