There are currently 22 functions broken into 6 sections.
Most of the functions have accessor functions to modify the data once passed to the function but the default is that the data is in the form of an array of points (i.e. x and y coordinates). So:
[ [x1, y1], [x2, y2], [x3, y3] ]
This library relies on big.js. This is used as overflow errors occur otherwise when fitting polynomials. I've modified the DP variable and have provided links above to the adjusted libraries.
Add the following tags to your HTML:
<script src="your-folder/big.js"></script> <script src="your-folder/ssci.js"></script>
See the individual pages on the left for details of the functions.