How to use cubic spline interpolation to get a curve in java? : <p>I am working in image processing to get intermediate points using cubic spline interpolation as done <a href="http://in.mathworks.com/help/matlab/ref/spline.html" rel="nofollow noreferrer">here</a>. How can I achieve this in Java-language. Such as I have some main points :</p>

<ul>
<li>x = 24, 35, 67, 78,79.</li>
<li>y = 13, 45, 8, 45, 23.
I want to get intermediate points for x=1 to 100.</li>
</ul>

<p><a href="https://i.stack.imgur.com/FSYkB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FSYkB.png" alt="enter image description here"></a></p>

<p>Is there any library or function available in java. Please tell.</p>
