BSpline2d#
- class pyopenms.BSpline2d#
Bases:
objectCython implementation of _BSpline2d
Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS_1_1BSpline2d.html
- __init__()#
Cython signature: void BSpline2d(libcpp_vector[double] x, libcpp_vector[double] y, double wave_length, BoundaryCondition boundary_condition, size_t num_nodes)
Methods
Cython signature: void BSpline2d(libcpp_vector[double] x, libcpp_vector[double] y, double wave_length, BoundaryCondition boundary_condition, size_t num_nodes)
Cython signature: void debug(bool enable) Enable or disable debug messages from the B-spline library
Cython signature: double derivative(double x) Returns the first derivative of the spline curve at the given position x.
Cython signature: double eval(double x) Returns the evaluation of the smoothed curve at a particular x value.
Cython signature: bool ok() Returns whether the spline fit was successful
Cython signature: bool solve(libcpp_vector[double] y) Solve the spline curve for a new set of y values.
- debug()#
Cython signature: void debug(bool enable) Enable or disable debug messages from the B-spline library
- derivative()#
Cython signature: double derivative(double x) Returns the first derivative of the spline curve at the given position x. Returns zero if the current state is not ok()
- eval()#
Cython signature: double eval(double x) Returns the evaluation of the smoothed curve at a particular x value. If current state is not ok(), returns zero
- ok()#
Cython signature: bool ok() Returns whether the spline fit was successful
- solve()#
Cython signature: bool solve(libcpp_vector[double] y) Solve the spline curve for a new set of y values. Returns false if the solution fails