Python Forum
Cubic spline Graph Interpretation how?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cubic spline Graph Interpretation how?
#1
Hi Friends,

i am new to python i want to calculate the r2 value for the cubic spline graph and how the results are intercepted from the graph based on the standard b/b0 and concentration values i am attaching a image file for your reference please any one can help me to rewrite the code logic for the calculation of cubic spline graph generation
the formula for cubic spline calculation is as below

The function S(x)∈C2[a,b], and it is a cubic polynomial on each cell [xj,xj+1], where a = x0 <x1<...< xn= b is a given node, then S(x) is called a cubic spline function on nodes x0, x1,...xn.If the function value Yj = f (Xj).( j =0, 1,, n) is given at the node x j, it is true S(xj) = yj .( j = 0, 1,, n), then S(x) is called a cubic spline interpolation function.
The actual calculation also needs to introduce boundary conditions to complete the calculation. The boundary usually has a natural boundary (the second derivative of the boundary point is 0) Clamping boundary (given by the derivative of boundary point), non-kinking boundary (make the third-order derivative of the two end points and the third-order of the adjacent points of the two end points) Lead equal).

thanks in advance

Green369

Attached Files

Thumbnail(s)
   
Reply
#2
I think the scipy package has a specialized function scipy.interpolate.CubicSpline() that computes a cubic spline interpolation given a set of abscissas and corresponding set of ordinates. Look for example usage of this function.
SandraYokum likes this post
« We can solve any problem by introducing an extra level of indirection »
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Cubic interpolation in Pandas raises ValueError: The number of derivatives at boundar JaneTan 2 2,594 Dec-10-2022, 04:28 AM
Last Post: JaneTan
  model interpretation for automated theorem proving with Z3 vdbrueck 0 1,487 Jul-13-2020, 05:10 PM
Last Post: vdbrueck

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020