SlideShare a Scribd company logo
1 of 22
Shape Preserving
Interpolation Using
C2 Rational Cubic
Spline
Prepared by Adarsha Dhakal
Linear Interpolation
Linear Interpolation is a way of curve fitting the
points by using linear polynomial such as the
equation of the line. This is just similar to joining
points by drawing a line between the two points in
the dataset.
Cubic Spline
A cubic spline is a spline constructed of piecewise
third-order polynomials which pass through a set
of control points.
Cubic Spline
➔ STRENGTH
It has second order
parametric continuity.
Splines are smooth and
continuous.
Cubic Spline
➔ WEAKNESS
Interpolating curves may
give few unwanted
behaviour of the original
data which may destroy the
data.
Cubic Spline
➔ WEAKNESS
If the given data is positive
cubic spline may give some
negative values along the
whole interval.
Cubic Spline
➔ WEAKNESS
For some application
negativity is unacceptable.
Eg: Wind Speed, Solar
energy and rainfall received
are always having positive
values.
Cubic Spline
➔ WEAKNESS
Cannot Produce completely
monotone and convex
interpolating curves.
Methods for preserving
Positivity, Monotonicity and
Convexity of the data by
Researchers.
Fritsch and Carlson
Used cubic spline interpolation by modifying the first
derivative values in which shape violation is found.
Butt and Brodlie
Used cubic spline interpolation to preserve the positivity
and convexity of the finite data by inserting extra knots in
the interval.
Drawbacks
Did not give any extra freedom to the user in controlling the
final shape of the interpolating curves.
Their method require the modification of the first derivative
parameters.
C2 Rational Cubic
Spline Interpolant
It is interpolation with cubic numerator and quadratic denominator which
is used for shape preserving interpolation for positive data.
It has three parameters αi, βi, γi
Sufficient condition for positivity are derived on one parameter γi
αi and βi are free parameters that can be used to change the final shape
of the resulting interpolating curves.
Features
It works for both equally and unequally spaced data.
It doesn’t require any knots insertion.
Provides greater flexibility to the user in controlling the final shape of the
interpolating curves.
C2 Rational Cubic
Spline Interpolant
Given the set of data points
{(xi, fi), i = 0,1,....n}
such that x0 < x1 < … Xn
Let hi= xi+1 -xi, Δi= (fi+1 -fi)/hi and θ = (x-xi)/hi where 0 ≤ θ ≤ 1
C2 Rational Cubic Cont.
Now, cubic spline with three parameters is defined as follows:
Also we can write s(x) = si(x) = Pi(θ)/Qi(θ)s(x) = si(x) = Pi()/Qi()s(x)
= si(x) = Pi()/Qi()s(x) = si(x) = Pi()/Qi()
C2 Rational Cubic Cont.
The following conditions will assure that the relational cubic spline
interpolation above has C2 continuity:
C2 Rational Cubic Cont.
The required C2 rational cubic spline interpolation with three parameters
has the unknown Aij where j=0,1,2,3 and is given as follows:
The parameters αi, βi > 0, γi ≥ are used to control the final shape of the
interpolating curves.
Positivity Preserving
Data dependent conditions for positivity are derived on one
parameter γi while the remaining parameters αi and βi are
free to be utilized.
To preserve positivity rational cubic spline interpolant must
be positive on the entire given interval.
Simple way to achieve it is by finding the automated choice
of the shape parameter γi
Positivity Preserving Cont.
Given the strictly positive set of data (xi, fi) where i = 0,1,...n
And x0 < x1 < . . . < xn, such that fi > 0
We know that s(x) = si(x) = Pi(θ)/Qi(θ)
The rational cubic spline will preserve positivity of data if and only if Pi(θ) and
Qi(θ) > 0.
Since for all αi, βi, > 0 and γi ≥ 0 the denominator Qi(θ) > 0 Thus s(x) > 0 if and
only if Pi(θ) > 0
Positivity Preserving Cont.
The cubic polynomial Pi(θ) can be written as
Pi(θ) = Biθ3 + Ciθ2 + Diθ + Ei
Thank you!

More Related Content

Similar to Shape Preserving Interpolation Using C2 Rational Cubic Spline

Curve_Fitting.pdf
Curve_Fitting.pdfCurve_Fitting.pdf
Curve_Fitting.pdf
Irfan Khan
 
How to draw a good graph
How to draw a good graphHow to draw a good graph
How to draw a good graph
Tarun Gehlot
 

Similar to Shape Preserving Interpolation Using C2 Rational Cubic Spline (20)

Curve Fitting
Curve FittingCurve Fitting
Curve Fitting
 
UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )
UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )
UNIT II GEOMETRIC MODELING (COMPUTER AIDED DESIGN AND MANUFACTURING )
 
Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...
 
Curve_Fitting.pdf
Curve_Fitting.pdfCurve_Fitting.pdf
Curve_Fitting.pdf
 
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationApplied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
 
AN EFFICIENT LINE CLIPPING ALGORITHM FOR CIRCULAR WINDOWS USING VECTOR CALCUL...
AN EFFICIENT LINE CLIPPING ALGORITHM FOR CIRCULAR WINDOWS USING VECTOR CALCUL...AN EFFICIENT LINE CLIPPING ALGORITHM FOR CIRCULAR WINDOWS USING VECTOR CALCUL...
AN EFFICIENT LINE CLIPPING ALGORITHM FOR CIRCULAR WINDOWS USING VECTOR CALCUL...
 
An Efficient Line Clipping Algorithm for Circular Windows Using Vector Calcul...
An Efficient Line Clipping Algorithm for Circular Windows Using Vector Calcul...An Efficient Line Clipping Algorithm for Circular Windows Using Vector Calcul...
An Efficient Line Clipping Algorithm for Circular Windows Using Vector Calcul...
 
AN EFFICIENT LINE CLIPPING ALGORITHM FOR CIRCULAR WINDOWS USING VECTOR CALCUL...
AN EFFICIENT LINE CLIPPING ALGORITHM FOR CIRCULAR WINDOWS USING VECTOR CALCUL...AN EFFICIENT LINE CLIPPING ALGORITHM FOR CIRCULAR WINDOWS USING VECTOR CALCUL...
AN EFFICIENT LINE CLIPPING ALGORITHM FOR CIRCULAR WINDOWS USING VECTOR CALCUL...
 
Second Period Math Applications
Second Period Math ApplicationsSecond Period Math Applications
Second Period Math Applications
 
Quadric surfaces
Quadric surfacesQuadric surfaces
Quadric surfaces
 
Curves and surfaces
Curves and surfacesCurves and surfaces
Curves and surfaces
 
Curve fitting - Lecture Notes
Curve fitting - Lecture NotesCurve fitting - Lecture Notes
Curve fitting - Lecture Notes
 
Business statistics homework help
Business statistics homework helpBusiness statistics homework help
Business statistics homework help
 
Spline interpolation numerical methods presentation
Spline interpolation numerical methods presentationSpline interpolation numerical methods presentation
Spline interpolation numerical methods presentation
 
Comparing the methods of Estimation of Three-Parameter Weibull distribution
Comparing the methods of Estimation of Three-Parameter Weibull distributionComparing the methods of Estimation of Three-Parameter Weibull distribution
Comparing the methods of Estimation of Three-Parameter Weibull distribution
 
Chapter 3. velocity analysis (IC,GRAPHICAL AND RELATIVE VELOCITY METHOD)
Chapter 3. velocity analysis (IC,GRAPHICAL AND RELATIVE VELOCITY METHOD)Chapter 3. velocity analysis (IC,GRAPHICAL AND RELATIVE VELOCITY METHOD)
Chapter 3. velocity analysis (IC,GRAPHICAL AND RELATIVE VELOCITY METHOD)
 
Curve Fitting - Linear Algebra
Curve Fitting - Linear AlgebraCurve Fitting - Linear Algebra
Curve Fitting - Linear Algebra
 
Geomentric Modelling
Geomentric Modelling Geomentric Modelling
Geomentric Modelling
 
How to draw a good graph
How to draw a good graphHow to draw a good graph
How to draw a good graph
 
IRJET- On the Generalization of Lami’s Theorem
IRJET- On the Generalization of Lami’s TheoremIRJET- On the Generalization of Lami’s Theorem
IRJET- On the Generalization of Lami’s Theorem
 

More from AdarshaDhakal (6)

cloud_ch1.pptx
cloud_ch1.pptxcloud_ch1.pptx
cloud_ch1.pptx
 
Concealed Object Recognition
Concealed Object RecognitionConcealed Object Recognition
Concealed Object Recognition
 
MapReduce Programming Model
MapReduce Programming ModelMapReduce Programming Model
MapReduce Programming Model
 
Highway Networks
Highway NetworksHighway Networks
Highway Networks
 
An IoT based smart irrigation management system(SIMS) using machine learning ...
An IoT based smart irrigation management system(SIMS) using machine learning ...An IoT based smart irrigation management system(SIMS) using machine learning ...
An IoT based smart irrigation management system(SIMS) using machine learning ...
 
Concept Sorting in Knowledge Elicitation
Concept Sorting in Knowledge ElicitationConcept Sorting in Knowledge Elicitation
Concept Sorting in Knowledge Elicitation
 

Recently uploaded

Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..
MaherOthman7
 
Seizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksSeizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networks
IJECEIAES
 

Recently uploaded (20)

Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..Maher Othman Interior Design Portfolio..
Maher Othman Interior Design Portfolio..
 
Seizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networksSeizure stage detection of epileptic seizure using convolutional neural networks
Seizure stage detection of epileptic seizure using convolutional neural networks
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
 
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and ToolsMaximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
 
Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligence
 
Filters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility ApplicationsFilters for Electromagnetic Compatibility Applications
Filters for Electromagnetic Compatibility Applications
 
Working Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdfWorking Principle of Echo Sounder and Doppler Effect.pdf
Working Principle of Echo Sounder and Doppler Effect.pdf
 
engineering chemistry power point presentation
engineering chemistry  power point presentationengineering chemistry  power point presentation
engineering chemistry power point presentation
 
Software Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfSoftware Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdf
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 
Passive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.pptPassive Air Cooling System and Solar Water Heater.ppt
Passive Air Cooling System and Solar Water Heater.ppt
 
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
Dynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptxDynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptx
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
handbook on reinforce concrete and detailing
handbook on reinforce concrete and detailinghandbook on reinforce concrete and detailing
handbook on reinforce concrete and detailing
 
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
 

Shape Preserving Interpolation Using C2 Rational Cubic Spline

  • 1. Shape Preserving Interpolation Using C2 Rational Cubic Spline Prepared by Adarsha Dhakal
  • 2. Linear Interpolation Linear Interpolation is a way of curve fitting the points by using linear polynomial such as the equation of the line. This is just similar to joining points by drawing a line between the two points in the dataset.
  • 3. Cubic Spline A cubic spline is a spline constructed of piecewise third-order polynomials which pass through a set of control points.
  • 4. Cubic Spline ➔ STRENGTH It has second order parametric continuity. Splines are smooth and continuous.
  • 5. Cubic Spline ➔ WEAKNESS Interpolating curves may give few unwanted behaviour of the original data which may destroy the data.
  • 6. Cubic Spline ➔ WEAKNESS If the given data is positive cubic spline may give some negative values along the whole interval.
  • 7. Cubic Spline ➔ WEAKNESS For some application negativity is unacceptable. Eg: Wind Speed, Solar energy and rainfall received are always having positive values.
  • 8. Cubic Spline ➔ WEAKNESS Cannot Produce completely monotone and convex interpolating curves.
  • 9. Methods for preserving Positivity, Monotonicity and Convexity of the data by Researchers.
  • 10. Fritsch and Carlson Used cubic spline interpolation by modifying the first derivative values in which shape violation is found.
  • 11. Butt and Brodlie Used cubic spline interpolation to preserve the positivity and convexity of the finite data by inserting extra knots in the interval.
  • 12. Drawbacks Did not give any extra freedom to the user in controlling the final shape of the interpolating curves. Their method require the modification of the first derivative parameters.
  • 13. C2 Rational Cubic Spline Interpolant It is interpolation with cubic numerator and quadratic denominator which is used for shape preserving interpolation for positive data. It has three parameters αi, βi, γi Sufficient condition for positivity are derived on one parameter γi αi and βi are free parameters that can be used to change the final shape of the resulting interpolating curves.
  • 14. Features It works for both equally and unequally spaced data. It doesn’t require any knots insertion. Provides greater flexibility to the user in controlling the final shape of the interpolating curves.
  • 15. C2 Rational Cubic Spline Interpolant Given the set of data points {(xi, fi), i = 0,1,....n} such that x0 < x1 < … Xn Let hi= xi+1 -xi, Δi= (fi+1 -fi)/hi and θ = (x-xi)/hi where 0 ≤ θ ≤ 1
  • 16. C2 Rational Cubic Cont. Now, cubic spline with three parameters is defined as follows: Also we can write s(x) = si(x) = Pi(θ)/Qi(θ)s(x) = si(x) = Pi()/Qi()s(x) = si(x) = Pi()/Qi()s(x) = si(x) = Pi()/Qi()
  • 17. C2 Rational Cubic Cont. The following conditions will assure that the relational cubic spline interpolation above has C2 continuity:
  • 18. C2 Rational Cubic Cont. The required C2 rational cubic spline interpolation with three parameters has the unknown Aij where j=0,1,2,3 and is given as follows: The parameters αi, βi > 0, γi ≥ are used to control the final shape of the interpolating curves.
  • 19. Positivity Preserving Data dependent conditions for positivity are derived on one parameter γi while the remaining parameters αi and βi are free to be utilized. To preserve positivity rational cubic spline interpolant must be positive on the entire given interval. Simple way to achieve it is by finding the automated choice of the shape parameter γi
  • 20. Positivity Preserving Cont. Given the strictly positive set of data (xi, fi) where i = 0,1,...n And x0 < x1 < . . . < xn, such that fi > 0 We know that s(x) = si(x) = Pi(θ)/Qi(θ) The rational cubic spline will preserve positivity of data if and only if Pi(θ) and Qi(θ) > 0. Since for all αi, βi, > 0 and γi ≥ 0 the denominator Qi(θ) > 0 Thus s(x) > 0 if and only if Pi(θ) > 0
  • 21. Positivity Preserving Cont. The cubic polynomial Pi(θ) can be written as Pi(θ) = Biθ3 + Ciθ2 + Diθ + Ei