pingwyn.core.func.process.curve_fix_zero
Shift a curve such that the points at x = 0 or y = 0 are set to zero.
- param curve:
The curve to shift.
- type curve:
pingwyn.Curve
- param strat:
The shifting strategy to apply. “x” and “origin” will shift the y-axis, such that the datapoint at x = 0 is set to y = 0. “y” and “zero” will find the point closest to y = 0, and shift that point to y = 0. For both strategy types, the entire curve is shifted.
- type strat:
{“x”, “origin”, “y”, “zero”}
- returns:
The shifted curve.
- rtype:
pingwyn.Curve