BSpline2d#
- class pyopenms.BSpline2d#
Bases:
object
Cython implementation of _BSpline2d
Original C++ documentation is available here
- __init__(self, x: List[float], y: List[float], wave_length: float, boundary_condition: int, num_nodes: int) None #
Methods
__init__
(self, x, y, wave_length, ...)debug
(self, enable)Enable or disable debug messages from the B-spline library
derivative
(self, x)Returns the first derivative of the spline curve at the given position x.
eval
(self, x)Returns the evaluation of the smoothed curve at a particular x value.
ok
(self)Returns whether the spline fit was successful
solve
(self, y)Solve the spline curve for a new set of y values.
- debug(self, enable: bool) None #
Enable or disable debug messages from the B-spline library
- derivative(self, x: float) float #
Returns the first derivative of the spline curve at the given position x. Returns zero if the current state is not ok()
- eval(self, x: float) float #
Returns the evaluation of the smoothed curve at a particular x value. If current state is not ok(), returns zero
- ok(self) bool #
Returns whether the spline fit was successful
- solve(self, y: List[float]) bool #
Solve the spline curve for a new set of y values. Returns false if the solution fails