This code implements cubic spline interpolation and a few related methods.
Typescript code is in ts/src
folder. To compile to JavaScript, run tsc
command
in ts
folder, JavaScript files will appear in ts/dist
.
Demo (source in ts/demo
folder) can be seen at at:
Java code is in java/src
folder. To compile and run the demo use:
mkdir -p java/dist
cd java/src
javac -d ../dist --source-path ../src com/sorotokin/spline/Main.java
java -cp ../dist com.sorotokin.spline.Main
To run tests
java -cp ../dist:/path/to/junit.jar junit.textui.TestRunner com.sorotokin.spline.SplineTest