Skip to content

Weighted spline approximation (porting the built-in matlab function to the Python language)

Notifications You must be signed in to change notification settings

PhySci/B-splines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

B-splines

Weighted spline approximation (porting the built-in matlab function "spaps" to the Python language)

Example:

x = np.linspace(0, 5, 10)

y = x ** 3

w = np.ones(10)

sp1 = SmoothBSpline()

sp1.bspl(x, y, w, 1)

y1 = sp1.eval(x)

alt tag

Testing on real data

Some experimental data, MatLab and Python splines are shown on the top panel. The difference between MatLab and Python splines is shown on the bottom panel. alt tag

About

Weighted spline approximation (porting the built-in matlab function to the Python language)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published