Skip to content

DauteRR/Spline-Interpolation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spline Interpolation

In the mathematical field of numerical analysis, spline interpolation is a form of interpolation where the interpolant is a special type of piecewise polynomial called a spline.
Originally, spline was a term for elastic rulers that were bent to pass through a number of predefined points ("knots"). These were used to make technical drawings for shipbuilding and construction by hand.
The approach to mathematically model the shape of such elastic rulers fixed by n + 1 knots {(xi,yi):i=0,1, ... ,n} is to interpolate between all the pairs of knots (xi - 1,yi - 1) and (xi,yi) with polynomials y = qi(x), i = 1, 2, ..., n.

Program features

  • The amount of knots can be indicated by the user using a text field and a button to generate them randomly. The user can also remove the knots with a button.

  • There are two checkbox to specify which kinds of splines will be visualized.

  • The user can move freely any knots dragging it with the mouse.

  • Another way to move a knot is selecting it pressing 'n' key (the selected knot is indicated by the black color) and using 'w', 'a', 's' and 'd' keys. The coordinates of the selected knot will be displayed.

Establishing knots Kinds of splines
Knots mouse move Knots keyboard move

Execution

For execution, try the command below:

  java -jar Splines.jar

Author

Daute Rodríguez Rodríguez

About

Spline interpolation simulator developed as an assignment of Interactive Applications Programming course 💻 📚

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages