About this Journal Submit a Manuscript Table of Contents
ISRN Mathematical Analysis
VolumeΒ 2012Β (2012), Article IDΒ 174048, 14 pages
doi:10.5402/2012/174048
Research Article

Local Convexity Shape-Preserving Data Visualization by Spline Function

1School of Mathematical Sciences, Universiti Sains Malaysia, 11800 Penang, Malaysia
2Department of Mathematics, University of Sargodha, 40100 Sargodha, Pakistan
3School of Distance Education, Universiti Sains Malaysia, 11800 Penang, Malaysia

Received 16 November 2011; Accepted 21 December 2011

Academic Editor: R.Β Barrio

Copyright Β© 2012 Muhammad Abbas et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Abstract

The main purpose of this paper is the visualization of convex data that results in a smooth, pleasant, and interactive convexity-preserving curve. The rational cubic function with three free parameters is constructed to preserve the shape of convex data. The free parameters are arranged in a way that two of them are left free for user choice to refine the convex curve as desired, and the remaining one free parameter is constrained to preserve the convexity everywhere. Simple data-dependent constraints are derived on one free parameter, which guarantee to preserve the convexity of curve. Moreover, the scheme under discussion is, 𝐢 1 flexible, simple, local, and economical as compared to existing schemes. The error bound for the rational cubic function is 𝑂 ( β„Ž 3 ) .

1. Introduction

Spline interpolation is a significant tool in computer graphics, computer-aided geometric design and engineering as well. Convexity is prevalent shape feature of data. Therefore, the need for convexity preserving interpolating curves and surfaces according to the given data becomes inevitable. The aspiration of this paper is to preserve the hereditary attribute that is the convexity of data. There are many applications of convexity preserving of data, for instance, in the design of telecommunication systems, nonlinear programming arising in engineering, approximation of functions, optimal control, and parameter estimation.

The problem of convexity-preserving interpolation has been considered by a number of authors [121] and references therein. Bao et al. [1] used function values and first derivatives of function to introduce a rational cubic spline (cubic/cubic). A method for value control, inflection-point control and convexity control of the interpolation at a point was developed to be used in practical curve design. Asaturyan et al. [3] constructed a six-degree piecewise polynomial interpolant for the space curves to satisfy the shape-preserving properties for collinear and coplanar data.

Brodlie and Butt [4] developed a piecewise rational cubic function to preserve the shape of convex data. In [4], the authors inserted extra knots in the interval where the interpolation loses the convexity of convex data which is the drawback of this scheme. Carnicer et al. [5] analyzed the convexity-preserving properties of rational Bézier and non-uniform rational B-spline curves from a geometric point of view and also characterize totally positive systems of functions in terms of geometric convexity-preserving properties of the rational curves.

Clements [6] developed a 𝐢 2 parametric rational cubic interpolant with tension parameter to preserve the convexity. Sufficient conditions were derived to preserve the convexity of the function on strictly left/right winding polygonal line segments. Costantini and Fontanella [8] preserved the convexity of data by semi-global method. The scheme has some research gaps like the degree of rectangular patches in the interpolant that was too large; the resulting surfaces were not visually pleasing and smooth.

Delbourgo and Gregory [9] developed an explicit representation of rational cubic function with one free parameter which can be used to preserve the convexity of convex data. Meng and Shi Long [11] also developed an explicit representation of rational cubic function with two free parameters which can be used to preserve the convexity of convex data. In the schemes [9, 11], there was no choice for user to refine the convexity curve as desired. The rational spline was represented in terms of first derivative values at the knots and provided an alternative to the spline under tension to preserve the shape of monotone and convex data by Gregory [10].

McAllister [12], Passow [13], and Roulier [14] considered the problem of interpolating monotonic and convex data in the sense of monotonicity and convexity preserving. They used a piecewise polynomial Bernstein-Bézier function and introduce additional knots into their schemes. Such a scheme for quadratic spline interpolation was described by McAllister [12] and was further developed by Schumaker [15] using piecewise quadratic polynomial which was very economical, but the method generally inserts an extra knot in each interval to interpolate.

Sarfraz and Hussain [17] used the rational cubic function with two shape parameters to solve the problem of convexity preserving of convex data. Data-dependent sufficient constraints were derived to preserve the shape of convex data. Sarfraz [18] developed a piecewise rational cubic function with two families of parameters. In [18], the authors derived the sufficient conditions on shape parameters to preserve the physical shape properties of data. Sarfraz [1921] used piecewise rational cubic interpolant in parametric context for shape preserving of plane curves and scalar curves with planar data. The schemes [1721] are local, but, unfortunately, they have no flexibility in the convexity-preserving curves.

In this paper, we construct a rational cubic function with three free parameters. One of the free parameter is used as a constrained to preserve the convexity of convex data while the other two are left free for the user to modify the convex curve. Sufficient data-dependent constraints are derived. Our scheme has a number of attributes over the existing schemes.(i)In this paper, the shape-preserving of convex data is achieved by simply imposing the conditions subject to data on the shape parameters used in the description of rational cubic function. The proposed scheme works evenly good for both equally and unequally spaced data. In contrast [1] assumed certain function values and derivative values to control the shape of the data.(ii)In [12, 15], the smoothness of interpolant is 𝐢 0 while in this work the degree of smoothness is 𝐢 1 .(iii)The developed scheme has been demonstrated through different numerical examples and observed that the scheme is not only local, computationally economical, and easy to compute, time saving but also visually pleasant as compared to existing schemes [1721].(iv)In [911, 1721], the schemes do not allow to user to refine the convex curve as desired while for more pleasing curve (and still having the convex shape preserved) an additional modification is required, and this task is more easily done in this paper by simply adjustment of free parameters in the rational cubic function interpolation on user choice.(v)In [1721], the authors did not provide the error analysis of the interpolants while a very good 𝑂 ( β„Ž 3 ) error bound is achieved in this paper.(vi)In [4, 1215], the authors developed the schemes to achieve the desired shape of data by inserting extra knots between any two knots in the interval while we preserve the shape of convex data by only imposing constraints on free parameters without any extra knots.

The remaining part of this paper is organized as follows. A rational cubic function is defined in Section 2. The error of the rational cubic interpolant is discussed in Section 3. The problem of shape preserving convexity curve is discussed in Section 4. Derivatives approximation method is given in Section 5. Some numerical results are given in Section 6. Finally, the conclusion of this work is discussed in Section 7.

2. Rational Cubic Spline Function

Let { ( π‘₯ 𝑖 , 𝑓 𝑖 ) , 𝑖 = 0 , 1 , 2 , … , 𝑛 } be the given set of data points such as π‘₯ 0 < π‘₯ 1 < π‘₯ 2 < β‹― < π‘₯ 𝑛 . The rational cubic function with three free parameters introduced by Abbas et al. [2], in each subinterval 𝐼 𝑖 = [ π‘₯ 𝑖 , π‘₯ 𝑖 + 1 ] , 𝑖 = 0 , 1 , 2 , … , 𝑛 βˆ’ 1 , is defined as 𝑆 𝑖 𝑝 ( π‘₯ ) = 𝑖 ( πœƒ ) π‘ž 𝑖 ( πœƒ ) , ( 2 . 1 ) with 𝑝 𝑖 ( πœƒ ) = 𝑒 𝑖 𝑓 𝑖 ( 1 βˆ’ πœƒ ) 3 + ξ€· 𝑀 𝑖 𝑓 𝑖 + 𝑒 𝑖 β„Ž 𝑖 𝑑 𝑖 ξ€Έ πœƒ ( 1 βˆ’ πœƒ ) 2 + ξ€· 𝑀 𝑖 𝑓 𝑖 + 1 βˆ’ 𝑣 𝑖 β„Ž 𝑖 𝑑 𝑖 + 1 ξ€Έ πœƒ 2 ( 1 βˆ’ πœƒ ) + 𝑣 𝑖 𝑓 𝑖 + 1 πœƒ 3 , π‘ž 𝑖 ( πœƒ ) = 𝑒 𝑖 ( 1 βˆ’ πœƒ ) 3 + 𝑀 𝑖 πœƒ ( 1 βˆ’ πœƒ ) + 𝑣 𝑖 πœƒ 3 , ( 2 . 2 ) where πœƒ = π‘₯ βˆ’ π‘₯ 𝑖 / β„Ž 𝑖 , β„Ž 𝑖 = π‘₯ 𝑖 + 1 βˆ’ π‘₯ 𝑖 , and 𝑒 𝑖 , 𝑣 𝑖 , 𝑀 𝑖 are the positive free parameters. It is worth noting that when we use the values of these free parameters as 𝑒 𝑖 = 1 , 𝑣 𝑖 = 1 a n d 𝑀 𝑖 = 3 , then the 𝐢 1 piecewise rational cubic function (2.1) reduces to standard cubic Hermite spline discussed in Schultz [16].

The piecewise rational cubic function has the following interpolatory conditions: 𝑆 𝑖 ξ€· π‘₯ 𝑖 ξ€Έ = 𝑓 𝑖 , 𝑆 𝑖 ξ€· π‘₯ 𝑖 + 1 ξ€Έ = 𝑓 𝑖 + 1 , 𝑆 β€² 𝑖 ξ€· π‘₯ 𝑖 ξ€Έ = 𝑑 𝑖 , 𝑆 ξ…ž 𝑖 ξ€· π‘₯ 𝑖 + 1 ξ€Έ = 𝑑 𝑖 + 1 , ( 2 . 3 ) where 𝑆 ξ…ž 𝑖 ( π‘₯ ) denotes the derivative with respect to “x,” and 𝑑 𝑖 denotes the derivative values at knots.

3. Interpolation Error Analysis

The error analysis of piecewise rational cubic function (2.1) is estimated, without loss of generality, in the subinterval 𝐼 𝑖 = [ π‘₯ 𝑖 , π‘₯ 𝑖 + 1 ] . It is to mention that the scheme constructed in Section 2 is local. We suppose that 𝑓 ( π‘₯ ) ∈ 𝐢 3 [ π‘₯ 0 , π‘₯ 𝑛 ] , and 𝑆 𝑖 ( π‘₯ ) is the interpolation of function 𝑓 ( π‘₯ ) over arbitrary subinterval 𝐼 𝑖 = [ π‘₯ 𝑖 , π‘₯ 𝑖 + 1 ] . The Peano Kernel Theorem, Schultz [16] is used to obtain the error analysis of piecewise rational cubic interpolation in each subinterval 𝐼 𝑖 = [ π‘₯ 𝑖 , π‘₯ 𝑖 + 1 ] , and it is defined as 𝑅 [ 𝑓 ] = 𝑓 ( π‘₯ ) βˆ’ 𝑆 𝑖 1 ( π‘₯ ) = 2 ξ€œ π‘₯ 𝑖 + 1 π‘₯ 𝑖 𝑓 ( 3 ) ( 𝜏 ) 𝑅 π‘₯ ξ€Ί ( π‘₯ βˆ’ 𝜏 ) 2 + ξ€» 𝑑 𝜏 . ( 3 . 1 ) In each subinterval, the absolute value of error is | | 𝑓 ( π‘₯ ) βˆ’ 𝑆 𝑖 | | ≀ 1 ( π‘₯ ) 2 β€– β€– 𝑓 ( 3 ) β€– β€– ξ€œ ( 𝜏 ) π‘₯ 𝑖 + 1 π‘₯ 𝑖 | | 𝑅 π‘₯ ξ€Ί ( π‘₯ βˆ’ 𝜏 ) 2 + ξ€» | | 𝑑 𝜏 , ( 3 . 2 ) where 𝑅 π‘₯ ξ€Ί ( π‘₯ βˆ’ 𝜏 ) 2 + ξ€» = ⎧ βŽͺ βŽͺ ⎨ βŽͺ βŽͺ ⎩ ( π‘₯ βˆ’ 𝜏 ) 2 βˆ’ ξ‚€ 𝑀 𝑖 ξ€· π‘₯ 𝑖 + 1 ξ€Έ βˆ’ 𝜏 2 βˆ’ 2 β„Ž 𝑖 𝑣 𝑖 ξ€· π‘₯ 𝑖 + 1 ξ€Έ  πœƒ βˆ’ 𝜏 2 ( 1 βˆ’ πœƒ ) + 𝑣 𝑖 ξ€· π‘₯ 𝑖 + 1 ξ€Έ βˆ’ 𝜏 2 πœƒ 3 π‘ž 𝑖 π‘₯ ( πœƒ ) 𝑖 ξ‚€ 𝑀 < 𝜏 < π‘₯ , 𝑖 ξ€· π‘₯ 𝑖 + 1 ξ€Έ βˆ’ 𝜏 2 βˆ’ 2 β„Ž 𝑖 𝑣 𝑖 ξ€· π‘₯ 𝑖 + 1 ξ€Έ  πœƒ βˆ’ 𝜏 2 ( 1 βˆ’ πœƒ ) + 𝑣 𝑖 ξ€· π‘₯ 𝑖 + 1 ξ€Έ βˆ’ 𝜏 2 πœƒ 3 π‘ž 𝑖 ( πœƒ ) π‘₯ < 𝜏 < π‘₯ 𝑖 + 1 , = ξ‚» π‘Ž ( 𝜏 , π‘₯ ) π‘₯ 𝑖 < 𝜏 < π‘₯ , 𝑏 ( 𝜏 , π‘₯ ) π‘₯ < 𝜏 < π‘₯ 𝑖 + 1 , ( 3 . 3 ) where 𝑅 π‘₯ [ ( π‘₯ βˆ’ 𝜏 ) 2 + ] is called the Peano Kernel of integral. To derive the error analysis, first of all we need to examine the properties of the kernel functions π‘Ž ( 𝜏 , π‘₯ ) and 𝑏 ( 𝜏 , π‘₯ ) , and then to find the values of following integrals: ξ€œ π‘₯ 𝑖 + 1 π‘₯ 𝑖 | | 𝑅 π‘₯ ξ€Ί ( π‘₯ βˆ’ 𝜏 ) 2 + ξ€» | | ξ€œ 𝑑 𝜏 = π‘₯ π‘₯ 𝑖 | | | | ξ€œ π‘Ž ( 𝜏 , π‘₯ ) 𝑑 𝜏 + π‘₯ 𝑖 + 1 π‘₯ | | | | 𝑏 ( 𝜏 , π‘₯ ) 𝑑 𝜏 . ( 3 . 4 ) So, we calculate these values in two parts. The proof of Theorem will be completed by combining these two parts.

3.1. Part 1

By simple computation, the roots of π‘Ž ( π‘₯ , π‘₯ ) = ( πœƒ 2 ( 1 βˆ’ πœƒ ) 2 ( ( 𝑀 𝑖 βˆ’ 𝜈 𝑖 ) πœƒ + ( 2 𝜈 𝑖 βˆ’ 𝑀 𝑖 ) ) β„Ž 2 𝑖 ) / π‘ž 𝑖 ( πœƒ ) in [ 0 , 1 ] are πœƒ = 0 , πœƒ = 1 a n d πœƒ βˆ— = 1 βˆ’ 𝜈 𝑖 / ( 𝑀 𝑖 βˆ’ 𝜈 𝑖 ) . It is easy to show that when πœƒ ≀ πœƒ βˆ— , π‘Ž ( π‘₯ , π‘₯ ) ≀ 0 and πœƒ β‰₯ πœƒ βˆ— , π‘Ž ( π‘₯ , π‘₯ ) β‰₯ 0 . The roots of quadratic function π‘Ž ( 𝜏 , π‘₯ ) = 0 are 𝜏 βˆ— 1 = π‘₯ βˆ’ πœƒ β„Ž 𝑖 ξ€· πœƒ ξ€· 𝑀 𝑖 βˆ’ 𝜈 𝑖 ξ€Έ ξ€Έ + 𝐴 ( 1 βˆ’ πœƒ ) 𝑒 𝑖 + πœƒ 𝑀 𝑖 , 𝜏 1 βˆ— βˆ— = π‘₯ βˆ’ πœƒ β„Ž 𝑖 ξ€· πœƒ ξ€· 𝑀 𝑖 βˆ’ 𝜈 𝑖 ξ€Έ ξ€Έ βˆ’ 𝐴 ( 1 βˆ’ πœƒ ) 𝑒 𝑖 + πœƒ 𝑀 𝑖 , ( 3 . 5 ) where √ 𝐴 = 𝜈 𝑖 ( ( 𝑀 𝑖 βˆ’ 2 𝜈 𝑖 ) + 3 πœƒ ) + 𝑀 𝑖 ( 𝑀 𝑖 βˆ’ 4 𝜈 𝑖 ) πœƒ .

So, when πœƒ > πœƒ βˆ— , π‘₯ 𝑖 < 𝜏 1 βˆ— βˆ— < π‘₯ and when πœƒ < πœƒ βˆ— , 𝜏 1 βˆ— βˆ— > π‘₯ . Thus, πœƒ < πœƒ βˆ— , π‘Ž ( 𝜏 , π‘₯ ) < 0 f o r a l l 𝜏 ∈ [ π‘₯ 𝑖 , π‘₯ ] , ξ€œ π‘₯ π‘₯ 𝑖 | | | | ξ€œ π‘Ž ( 𝜏 , π‘₯ ) 𝑑 𝜏 = π‘₯ π‘₯ 𝑖 = ξ€· 𝜈 ( βˆ’ π‘Ž ( 𝜏 , π‘₯ ) ) 𝑑 𝜏 𝑖 ( 3 βˆ’ πœƒ ) βˆ’ 𝑀 𝑖 ξ€Έ ( 1 βˆ’ πœƒ ) ( 1 βˆ’ πœƒ ) 3 πœƒ 2 β„Ž 3 𝑖 3 π‘ž 𝑖 + ξ€· 𝑀 ( πœƒ ) 𝑖 βˆ’ 3 𝑣 𝑖 ξ€Έ ( 1 βˆ’ πœƒ ) πœƒ 2 β„Ž 3 𝑖 3 π‘ž 𝑖 + 𝑣 ( πœƒ ) 𝑖 πœƒ 3 β„Ž 3 𝑖 3 π‘ž 𝑖 βˆ’ πœƒ ( πœƒ ) 3 β„Ž 3 𝑖 3 . ( 3 . 6 ) The value of π‘Ž ( 𝜏 , π‘₯ ) varies from negative to positive on the root 𝜏 1 βˆ— βˆ— when πœƒ > πœƒ βˆ— , ξ€œ π‘₯ π‘₯ 𝑖 | | | | ξ€œ π‘Ž ( 𝜏 , π‘₯ ) 𝑑 𝜏 = 𝜏 1 βˆ— βˆ— π‘₯ 𝑖 ξ€œ ( βˆ’ π‘Ž ( 𝜏 , π‘₯ ) ) 𝑑 𝜏 + π‘₯ 𝜏 1 βˆ— βˆ— = 2 𝑀 π‘Ž ( 𝜏 , π‘₯ ) 𝑑 𝜏 ξ€· ξ€· 𝑖 βˆ’ 𝜈 𝑖 ξ€Έ ξ€Έ πœƒ βˆ’ 𝐴 3 πœƒ 3 β„Ž 3 𝑖 3 ξ€· ( 1 βˆ’ πœƒ ) 𝑒 𝑖 + πœƒ 𝑀 𝑖 ξ€Έ 3 βˆ’ πœƒ 3 β„Ž 3 𝑖 3 βˆ’ 2 β„Ž 3 𝑖 3 π‘ž 𝑖  πœƒ 𝑀 ( πœƒ ) ( 1 βˆ’ πœƒ ) + ξ€· ξ€· 𝑖 βˆ’ 𝜈 𝑖 ξ€Έ ξ€Έ πœƒ βˆ’ 𝐴 ( 1 βˆ’ πœƒ ) 𝑒 𝑖 + πœƒ 𝑀 𝑖 ξƒ­ 3 Γ— ξ€· ( 1 βˆ’ πœƒ ) 𝑀 𝑖 + πœƒ 𝜈 𝑖 ξ€Έ + 2 β„Ž 3 𝑖 𝜈 𝑖 πœƒ 2 ( 1 βˆ’ πœƒ ) π‘ž 𝑖  πœƒ 𝑀 ( πœƒ ) ( 1 βˆ’ πœƒ ) + ξ€· ξ€· 𝑖 βˆ’ 𝜈 𝑖 ξ€Έ ξ€Έ πœƒ βˆ’ 𝐴 ( 1 βˆ’ πœƒ ) 𝑒 𝑖 + πœƒ 𝑀 𝑖 ξƒ­ 2 . ( 3 . 7 )

3.2. Part 2

In this part, we discuss the properties of function 𝑏 ( 𝜏 , π‘₯ ) . Consider 𝑏 ( 𝜏 , π‘₯ ) , 𝜏 ∈ [ π‘₯ , π‘₯ 𝑖 + 1 ] as function of 𝜏 . The roots of function 𝑏 ( 𝜏 , π‘₯ ) are similar as π‘Ž ( 𝜏 , π‘₯ ) in Section 3.1 at 𝜏 = π‘₯ . It is easy to show that when πœƒ ≀ πœƒ βˆ— , 𝑏 ( π‘₯ , π‘₯ ) ≀ 0 and πœƒ β‰₯ πœƒ βˆ— , 𝑏 ( π‘₯ , π‘₯ ) β‰₯ 0 . The roots of quadratic function 𝑏 ( 𝜏 , π‘₯ ) = 0 are 𝜏 βˆ— 2 = π‘₯ 𝑖 + 1 , 𝜏 2 βˆ— βˆ— = π‘₯ 𝑖 + 1 βˆ’ 2 ( 1 βˆ’ πœƒ ) 𝜈 𝑖 β„Ž 𝑖 ( 1 βˆ’ πœƒ ) 𝑀 𝑖 + πœƒ 𝜈 𝑖 . ( 3 . 8 ) The function 𝑏 ( 𝜏 , π‘₯ ) varies from negative to positive on the root 𝜏 2 βˆ— βˆ— when πœƒ ≀ πœƒ βˆ— . Thus, ξ€œ π‘₯ 𝑖 + 1 π‘₯ | | | | ξ€œ 𝑏 ( 𝜏 , π‘₯ ) 𝑑 𝜏 = 𝜏 2 βˆ— βˆ— π‘₯ ξ€œ ( βˆ’ 𝑏 ( 𝜏 , π‘₯ ) ) 𝑑 𝜏 + π‘₯ 𝑖 + 1 𝜏 2 βˆ— βˆ— = 𝑏 ( 𝜏 , π‘₯ ) 𝑑 𝜏 8 πœƒ 2 ( 1 βˆ’ πœƒ ) 3 𝜈 𝑖 3 β„Ž 3 𝑖 3 π‘ž 𝑖 ξ€· ( πœƒ ) ( 1 βˆ’ πœƒ ) 𝑒 𝑖 + πœƒ 𝑀 𝑖 ξ€Έ 2 + β„Ž 3 𝑖 πœƒ 2 ( 1 βˆ’ πœƒ ) 3 3 π‘ž 𝑖 ξ€· 𝑀 ( πœƒ ) 𝑖 ( 1 βˆ’ πœƒ ) βˆ’ 𝜈 𝑖 ξ€Έ , ( 3 βˆ’ πœƒ ) ( 3 . 9 ) when πœƒ β‰₯ πœƒ βˆ— , ξ€œ π‘₯ 𝑖 + 1 π‘₯ | | | | ξ€œ 𝑏 ( 𝜏 , π‘₯ ) 𝑑 𝜏 = π‘₯ 𝑖 + 1 π‘₯ = β„Ž 𝑏 ( 𝜏 , π‘₯ ) 𝑑 𝜏 3 𝑖 πœƒ 2 ( 1 βˆ’ πœƒ ) 3 3 π‘ž 𝑖 ξ€· 𝜈 ( πœƒ ) 𝑖 ( 3 βˆ’ πœƒ ) βˆ’ 𝑀 𝑖 ( ξ€Έ . 1 βˆ’ πœƒ ) ( 3 . 1 0 ) Thus, from (3.6) and (3.9), it can be shown that when 0 ≀ πœƒ ≀ πœƒ βˆ— , | | 𝑓 ( π‘₯ ) βˆ’ 𝑆 𝑖 | | ≀ 1 ( π‘₯ ) 2 β€– β€– 𝑓 ( 3 ) β€– β€– ξ€œ ( 𝜏 ) π‘₯ 𝑖 + 1 π‘₯ 𝑖 | | 𝑅 π‘₯ ξ€Ί ( π‘₯ βˆ’ 𝜏 ( π‘₯ βˆ’ 𝜏 ) 2 + ξ€» | | β€– β€– 𝑓 𝑑 𝜏 = ( 3 ) β€– β€– β„Ž ( 𝜏 ) 3 𝑖 𝑝 1 ξ€· 𝑒 𝑖 , 𝑣 𝑖 , 𝑀 𝑖 ξ€Έ , πœƒ , ( 3 . 1 1 ) where 𝑝 1 ξ€· 𝑒 𝑖 , 𝜈 𝑖 , 𝑀 𝑖 ξ€Έ = ξ€· 𝜈 , πœƒ 𝑖 ( 3 βˆ’ πœƒ ) βˆ’ 𝑀 𝑖 ξ€Έ ( 1 βˆ’ πœƒ ) ( 1 βˆ’ πœƒ ) 3 πœƒ 2 6 π‘ž 𝑖 + ξ€· 𝑀 ( πœƒ ) 𝑖 βˆ’ 3 𝜈 𝑖 ξ€Έ ( 1 βˆ’ πœƒ ) πœƒ 2 6 π‘ž 𝑖 + 𝜈 ( πœƒ ) 𝑖 πœƒ 3 6 π‘ž 𝑖 βˆ’ πœƒ ( πœƒ ) 3 6 + 8 πœƒ 2 ( 1 βˆ’ πœƒ ) 3 𝜈 𝑖 3 6 π‘ž 𝑖 ξ€· ( πœƒ ) ( 1 βˆ’ πœƒ ) 𝑒 𝑖 + πœƒ 𝑀 𝑖 ξ€Έ 2 + πœƒ 2 ( 1 βˆ’ πœƒ ) 3 6 π‘ž 𝑖 ξ€· 𝑀 ( πœƒ ) 𝑖 ( 1 βˆ’ πœƒ ) βˆ’ 𝜈 𝑖 ξ€Έ , ( 3 βˆ’ πœƒ ) ( 3 . 1 2 ) and, from (3.7) and (3.10), it can be shown that when πœƒ βˆ— ≀ πœƒ ≀ 1 , | | 𝑓 ( π‘₯ ) βˆ’ 𝑆 𝑖 | | ≀ 1 ( π‘₯ ) 2 β€– β€– 𝑓 ( 3 ) β€– β€– ξ€œ ( 𝜏 ) π‘₯ 𝑖 + 1 π‘₯ 𝑖 | | 𝑅 π‘₯ ξ€Ί ( π‘₯ βˆ’ 𝜏 ) 2 + ξ€» | | β€– β€– 𝑓 𝑑 𝜏 = ( 3 ) β€– β€– β„Ž ( 𝜏 ) 3 𝑖 𝑝 2 ξ€· 𝑒 𝑖 , 𝜈 𝑖 , 𝑀 𝑖 ξ€Έ , πœƒ , ( 3 . 1 3 ) where 𝑝 2 ξ€· 𝑒 𝑖 , 𝜈 𝑖 , 𝑀 𝑖 ξ€Έ = 2 𝑀 , πœƒ ξ€· ξ€· 𝑖 βˆ’ 𝜈 𝑖 ξ€Έ ξ€Έ πœƒ βˆ’ 𝐴 3 πœƒ 3 6 ξ€· ( 1 βˆ’ πœƒ ) 𝑒 𝑖 + πœƒ 𝑀 𝑖 ξ€Έ 3 βˆ’ πœƒ 3 6 βˆ’ 2 6 π‘ž 𝑖  πœƒ 𝑀 ( πœƒ ) ( 1 βˆ’ πœƒ ) + ξ€· ξ€· 𝑖 βˆ’ 𝜈 𝑖 ξ€Έ ξ€Έ πœƒ βˆ’ 𝐴 ( 1 βˆ’ πœƒ ) 𝑒 𝑖 + πœƒ 𝑀 𝑖 ξƒ­ 3 Γ— ξ€· ( 1 βˆ’ πœƒ ) 𝑀 𝑖 + πœƒ 𝜈 𝑖 ξ€Έ + 𝜈 𝑖 πœƒ 2 ( 1 βˆ’ πœƒ ) π‘ž 𝑖  πœƒ 𝑀 ( πœƒ ) ( 1 βˆ’ πœƒ ) + ξ€· ξ€· 𝑖 βˆ’ 𝜈 𝑖 ξ€Έ ξ€Έ πœƒ βˆ’ 𝐴 ( 1 βˆ’ πœƒ ) 𝑒 𝑖 + πœƒ 𝑀 𝑖 ξƒ­ 2 + πœƒ 2 ( 1 βˆ’ πœƒ ) 3 6 π‘ž 𝑖 ξ€· 𝜈 ( πœƒ ) 𝑖 ( 3 βˆ’ πœƒ ) βˆ’ 𝑀 𝑖 ξ€Έ . ( 1 βˆ’ πœƒ ) ( 3 . 1 4 )

Theorem 3.1. For the positive free parameters 𝑒 𝑖 , 𝜈 𝑖 , a n d 𝑀 𝑖 , the error of interpolating rational cubic function 𝑆 𝑖 ( π‘₯ ) , for 𝑓 ( π‘₯ ) ∈ 𝐢 3 [ π‘₯ 0 , π‘₯ 𝑛 ] , in each subinterval 𝐼 𝑖 = [ π‘₯ 𝑖 , π‘₯ 𝑖 + 1 ] is | | 𝑓 ( π‘₯ ) βˆ’ 𝑆 𝑖 | | ≀ 1 ( π‘₯ ) 2 β€– β€– 𝑓 ( 3 ) β€– β€– ξ€œ ( 𝜏 ) π‘₯ 𝑖 + 1 π‘₯ 𝑖 | | 𝑅 π‘₯ ξ€Ί ( π‘₯ βˆ’ 𝜏 ) 2 + ξ€» | | β€– β€– 𝑓 𝑑 𝜏 = ( 3 ) β€– β€– β„Ž ( 𝜏 ) 3 𝑖 𝑐 𝑖 , 𝑐 𝑖 = m a x 0 ≀ πœƒ ≀ 1 𝑝 ξ€· 𝑒 𝑖 , 𝜈 𝑖 , 𝑀 𝑖 ξ€Έ , , πœƒ ( 3 . 1 5 ) where 𝑝 ξ€· 𝑒 𝑖 , 𝜈 𝑖 , 𝑀 𝑖 ξ€Έ = ξ‚» , πœƒ m a x 𝑝 1 ξ€· 𝑒 𝑖 , 𝜈 𝑖 , 𝑀 𝑖 ξ€Έ , πœƒ , 0 ≀ πœƒ ≀ πœƒ βˆ— m a x 𝑝 2 ξ€· 𝑒 𝑖 , 𝜈 𝑖 , 𝑀 𝑖 ξ€Έ , πœƒ , πœƒ βˆ— ≀ πœƒ ≀ 1 . ( 3 . 1 6 )

Remark 3.2. It is interesting to note that the rational cubic interpolation (2.1) reduces to standard cubic Hermite interpolation when we adjust the values of parameters as 𝑒 𝑖 = 1 , 𝜈 𝑖 = 1 a n d 𝑀 𝑖 = 3 . In this special case, the functions 𝑝 1 ( 𝑒 𝑖 , 𝜈 𝑖 , 𝑀 𝑖 , πœƒ ) a n d 𝑝 2 ( 𝑒 𝑖 , 𝜈 𝑖 , 𝑀 𝑖 , πœƒ ) are 𝑝 1 ξ€· 𝑒 𝑖 , 𝑣 𝑖 , 𝑀 𝑖 ξ€Έ = , πœƒ 4 πœƒ 2 ( 1 βˆ’ πœƒ ) 3 3 ( 3 βˆ’ 2 πœƒ ) 2 1 , 0 ≀ πœƒ ≀ 2 𝑝 , ( 3 . 1 7 ) 2 ξ€· 𝑒 𝑖 , 𝜈 𝑖 , 𝑀 𝑖 ξ€Έ = , πœƒ 4 πœƒ 3 ( 1 βˆ’ πœƒ ) 2 3 ( 1 + 2 πœƒ ) 2 , 1 2 ≀ πœƒ ≀ 0 , ( 3 . 1 8 ) respectively. Since 𝑐 𝑖 = m a x { m a x 0 ≀ πœƒ ≀ 0 . 5 𝑝 1 ( 𝑒 𝑖 , 𝜈 𝑖 , 𝑀 𝑖 , πœƒ ) , m a x 0 . 5 ≀ πœƒ ≀ 0 𝑝 2 ( 𝑒 𝑖 , 𝜈 𝑖 , 𝑀 𝑖 , πœƒ ) } = 1 / 9 6 . This is the standard result for standard cubic Hemite spline interpolation.

4. Shape Preserving 2D Convex Data Rational Cubic Spline Interpolation

The piecewise rational cubic function (2.1) does not guarantee to preserve the shape of convex data. So, it is required to assign suitable constraints on the free parameters by some mathematical treatment to preserve the convexity of convex data.

Theorem 4.1. The 𝐢 1 piecewise rational cubic function (2.1) preserves the convexity of convex data if in each subinterval 𝐼 𝑖 = [ π‘₯ 𝑖 , π‘₯ 𝑖 + 1 ] , 𝑖 = 0 , 1 , 2 , … , 𝑛 , the free parameters satisfy the following sufficient conditions: 𝑀 𝑖 ξƒ― 𝑑 > m a x 0 , 𝑖 + 1 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ Ξ” 𝑖 ξ€Έ , 𝑑 𝑖 + 1 𝜈 𝑖 ξ€· Ξ” 𝑖 βˆ’ 𝑑 𝑖 ξ€Έ , 2 𝑒 𝑖 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ Ξ” 𝑖 ξ€Έ ξ€· 𝑑 𝑖 + 1 𝜈 𝑖 βˆ’ Ξ” 𝑖 𝑒 𝑖 ξ€Έ , 2 𝑒 𝑖 𝜈 𝑖 ξ€· Ξ” 𝑖 βˆ’ 𝑑 𝑖 ξ€Έ ξ€· Ξ” 𝑖 𝜈 𝑖 βˆ’ 𝑑 𝑖 𝑒 𝑖 ξ€Έ , 𝑒 𝑖 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ 𝑑 𝑖 ξ€Έ Ξ” 𝑖 ξ€· 𝑒 𝑖 + 𝜈 𝑖 ξ€Έ ξƒ° , 𝑒 𝑖 , 𝜈 𝑖 > 0 . ( 4 . 1 ) The above constraints are rearranged as 𝑀 𝑖 = 𝑙 𝑖 ξƒ― 𝑑 + m a x 0 , 𝑖 + 1 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ Ξ” 𝑖 ξ€Έ , 𝑑 𝑖 + 1 𝜈 𝑖 ξ€· Ξ” 𝑖 βˆ’ 𝑑 𝑖 ξ€Έ , 2 𝑒 𝑖 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ Ξ” 𝑖 ξ€Έ ξ€· 𝑑 𝑖 + 1 𝜈 𝑖 βˆ’ Ξ” 𝑖 𝑒 𝑖 ξ€Έ , 2 𝑒 𝑖 𝜈 𝑖 ξ€· Ξ” 𝑖 βˆ’ 𝑑 𝑖 ξ€Έ ξ€· Ξ” 𝑖 𝜈 𝑖 βˆ’ 𝑑 𝑖 𝑒 𝑖 ξ€Έ , 𝑒 𝑖 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ 𝑑 𝑖 ξ€Έ Ξ” 𝑖 ξ€· 𝑒 𝑖 + 𝜈 𝑖 ξ€Έ ξƒ° , 𝑙 𝑖 β‰₯ 0 , 𝑒 𝑖 , 𝜈 𝑖 > 0 . ( 4 . 2 )

Proof. Let { ( π‘₯ 𝑖 , 𝑓 𝑖 ) , 𝑖 = 0 , 1 , 2 , … , 𝑛 } be the given set of convex data. For the strictly convex set of data, so Ξ” 1 < Ξ” 2 < Ξ” 3 < β‹― < Ξ” 𝑛 βˆ’ 1 . ( 4 . 3 ) In similar way for the concave set of data, we have Ξ” 1 > Ξ” 2 > Ξ” 3 > β‹― > Ξ” 𝑛 βˆ’ 1 . ( 4 . 4 ) Now, for a convex interpolation 𝑆 𝑖 ( π‘₯ ) , necessary conditions on derivatives parameters 𝑑 𝑖 should be in the form such that 𝑑 1 < Ξ” 1 < β‹― < Ξ” 𝑖 βˆ’ 1 < 𝑑 𝑖 < Ξ” 𝑖 < β‹― < Ξ” 𝑛 βˆ’ 1 < 𝑑 𝑛 . ( 4 . 5 ) Similarly, for concave interpolation, 𝑑 1 > Ξ” 1 > β‹― > Ξ” 𝑖 βˆ’ 1 > 𝑑 𝑖 > Ξ” 𝑖 > β‹― > Ξ” 𝑛 βˆ’ 1 > 𝑑 𝑛 . ( 4 . 6 ) The necessary conditions for the convexity of data are Ξ” 𝑖 βˆ’ 𝑑 𝑖 β‰₯ 0 , 𝑑 𝑖 + 1 βˆ’ Ξ” 𝑖 β‰₯ 0 . ( 4 . 7 ) Now a piecewise rational cubic interpolation 𝑆 𝑖 ( π‘₯ ) is convex if and only if 𝑆 𝑖 ( 2 ) ( π‘₯ ) β‰₯ 0 , βˆ€ π‘₯ ∈ [ π‘₯ 1 , π‘₯ 𝑛 ] , for π‘₯ ∈ [ π‘₯ 𝑖 , π‘₯ 𝑖 + 1 ] after some simplification it can be shown that; 𝑆 𝑖 ( 2 ) ( βˆ‘ π‘₯ ) = 8 π‘˜ = 1 πœƒ π‘˜ βˆ’ 1 ( 1 βˆ’ πœƒ ) 8 βˆ’ π‘˜ 𝐢 𝑖 π‘˜ β„Ž 𝑖 ξ€· π‘ž 𝑖 ξ€Έ ( πœƒ ) 3 , ( 4 . 8 ) where 𝐢 𝑖 1 = 2 𝜈 2 𝑖 ξ€· 𝑀 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ Ξ” 𝑖 ξ€Έ + 𝑑 𝑖 𝑒 𝑖 βˆ’ 𝑑 𝑖 + 1 𝜈 𝑖 ξ€Έ , 𝐢 𝑖 2 = 4 𝐢 𝑖 1 + 6 𝜈 2 𝑖 ξ€· 𝑑 𝑖 + 1 𝜈 𝑖 βˆ’ Ξ” 𝑖 𝑒 𝑖 ξ€Έ , 𝐢 𝑖 3 = ξ€· 𝐢 𝑖 2 βˆ’ 𝐢 𝑖 1 ξ€Έ + 6 𝜈 𝑖 ξ€½ 𝑀 𝑖 ξ€· 𝑑 𝑖 + 1 𝜈 𝑖 βˆ’ Ξ” 𝑖 𝑒 𝑖 ξ€Έ βˆ’ 2 𝑒 𝑖 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ Ξ” 𝑖 , 𝐢 ξ€Έ ξ€Ύ 𝑖 4 = ξ€· 𝐢 𝑖 3 + 𝐢 𝑖 1 βˆ’ 𝐢 𝑖 2 ξ€Έ + 2 𝑀 𝑖 ξ€½ 𝑀 𝑖 ξ€· Ξ” 𝑖 ξ€· 𝑒 𝑖 + 𝜈 𝑖 ξ€Έ ξ€Έ βˆ’ 𝑒 𝑖 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ 𝑑 𝑖 ξ€Έ ξ€Ύ + 1 4 𝑒 𝑖 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 𝜈 𝑖 βˆ’ 𝑑 𝑖 𝑒 𝑖 ξ€Έ , 𝐢 𝑖 5 = ξ€· 𝐢 𝑖 6 + 𝐢 𝑖 8 βˆ’ 𝐢 𝑖 7 ξ€Έ + 2 𝑀 𝑖 ξ€½ 𝑀 𝑖 ξ€· Ξ” 𝑖 ξ€· 𝑒 𝑖 + 𝜈 𝑖 ξ€Έ ξ€Έ βˆ’ 𝑒 𝑖 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ 𝑑 𝑖 ξ€Έ ξ€Ύ + 1 4 𝑒 𝑖 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 𝜈 𝑖 βˆ’ 𝑑 𝑖 𝑒 𝑖 ξ€Έ , 𝐢 𝑖 6 = ξ€· 𝐢 𝑖 7 βˆ’ 𝐢 𝑖 8 ξ€Έ + 6 𝑒 𝑖 ξ€½ 𝑀 𝑖 ξ€· Ξ” 𝑖 𝜈 𝑖 βˆ’ 𝑑 𝑖 𝑒 𝑖 ξ€Έ βˆ’ 2 𝑒 𝑖 𝜈 𝑖 ξ€· Ξ” 𝑖 βˆ’ 𝑑 𝑖 , 𝐢 ξ€Έ ξ€Ύ 𝑖 7 = 4 𝐢 𝑖 8 + 6 𝑒 2 𝑖 ξ€· Ξ” 𝑖 𝜈 𝑖 βˆ’ 𝑑 𝑖 𝑒 𝑖 ξ€Έ , 𝐢 𝑖 8 = 2 𝑒 2 𝑖 ξ€· 𝑀 𝑖 ξ€· Ξ” 𝑖 βˆ’ 𝑑 𝑖 ξ€Έ + 𝑑 𝑖 𝑒 𝑖 βˆ’ 𝑑 𝑖 + 1 𝜈 𝑖 ξ€Έ . ( 4 . 9 ) All 𝐢 𝑖 π‘˜ ’s are the expression involving the parameters 𝑑 β€² 𝑖 𝑠 , Ξ” ξ…ž 𝑖 𝑠 , 𝑒 ξ…ž 𝑖 𝑠 , 𝑣 ξ…ž 𝑖 𝑠 , a n d 𝑀 β€² 𝑖 𝑠 .
A 𝐢 1 piecewise rational cubic interpolant (2.1) preserves the convexity of data if 𝑆 𝑖 ( 2 ) ( π‘₯ ) β‰₯ 0 .
𝑆 𝑖 ( 2 ) ( π‘₯ ) > 0 if both βˆ‘ 8 π‘˜ = 1 πœƒ π‘˜ βˆ’ 1 ( 1 βˆ’ πœƒ ) 8 βˆ’ π‘˜ 𝐢 𝑖 π‘˜ > 0 and β„Ž 𝑖 ( π‘ž 𝑖 ( πœƒ ) ) 3 > 0 .
Since 𝑒 𝑖 , 𝜈 𝑖 , 𝑀 𝑖 are positive free parameters, so β„Ž 𝑖 ( π‘ž 𝑖 ( πœƒ ) ) 3 > 0 must be positive 8  π‘˜ = 1 πœƒ π‘˜ βˆ’ 1 ( 1 βˆ’ πœƒ ) 8 βˆ’ π‘˜ 𝐢 𝑖 π‘˜ > 0 i f 𝐢 𝑖 π‘˜ > 0 , π‘˜ = 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 . ( 4 . 1 0 ) Hence , 𝐢 𝑖 π‘˜ > 0 , π‘˜ = 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 if we have the following sufficient conditions on parameter 𝑀 𝑖 : 𝑀 𝑖 ξƒ― 𝑑 > m a x 0 , 𝑖 + 1 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ Ξ” 𝑖 ξ€Έ , 𝑑 𝑖 + 1 𝜈 𝑖 ξ€· Ξ” 𝑖 βˆ’ 𝑑 𝑖 ξ€Έ , 2 𝑒 𝑖 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ Ξ” 𝑖 ξ€Έ ξ€· 𝑑 𝑖 + 1 𝜈 𝑖 βˆ’ Ξ” 𝑖 𝑒 𝑖 ξ€Έ , 2 𝑒 𝑖 𝜈 𝑖 ξ€· Ξ” 𝑖 βˆ’ 𝑑 𝑖 ξ€Έ ξ€· Ξ” 𝑖 𝜈 𝑖 βˆ’ 𝑑 𝑖 𝑒 𝑖 ξ€Έ , 𝑒 𝑖 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ 𝑑 𝑖 ξ€Έ Ξ” 𝑖 ξ€· 𝑒 𝑖 + 𝜈 𝑖 ξ€Έ ξƒ° . ( 4 . 1 1 ) The above constraints are rearranged as 𝑀 𝑖 = 𝑙 𝑖 ξƒ― 𝑑 + m a x 0 , 𝑖 + 1 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ Ξ” 𝑖 ξ€Έ , 𝑑 𝑖 + 1 𝜈 𝑖 ξ€· Ξ” 𝑖 βˆ’ 𝑑 𝑖 ξ€Έ , 2 𝑒 𝑖 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ Ξ” 𝑖 ξ€Έ ξ€· 𝑑 𝑖 + 1 𝜈 𝑖 βˆ’ Ξ” 𝑖 𝑒 𝑖 ξ€Έ , 2 𝑒 𝑖 𝜈 𝑖 ξ€· Ξ” 𝑖 βˆ’ 𝑑 𝑖 ξ€Έ ξ€· Ξ” 𝑖 𝜈 𝑖 βˆ’ 𝑑 𝑖 𝑒 𝑖 ξ€Έ , 𝑒 𝑖 𝜈 𝑖 ξ€· 𝑑 𝑖 + 1 βˆ’ 𝑑 𝑖 ξ€Έ Ξ” 𝑖 ξ€· 𝑒 𝑖 + 𝜈 𝑖 ξ€Έ ξƒ° , 𝑙 𝑖 β‰₯ 0 , ( 4 . 1 2 ) where Ξ” 𝑖 = ( 𝑓 𝑖 + 1 βˆ’ 𝑓 𝑖 ) / β„Ž 𝑖 .

5. Determination of Derivatives

Usually, the derivative values at the knots are not given. These values are derived either at the given data set { ( π‘₯ 𝑖 , 𝑓 𝑖 ) , 𝑖 = 0 , 1 , 2 , … , 𝑛 } or by some other means. In this paper, these values are determined by following arithmetic mean method for data in such a way that the smoothness of the interpolant (2.1) is maintained.

5.1. Arithmetic Mean Method

This method is the three point difference approximation with 𝑑 𝑖 = ⎧ βŽͺ ⎨ βŽͺ ⎩ 0 i f Ξ” 𝑖 βˆ’ 1 = 0 o r Ξ” 𝑖 β„Ž = 0 , 𝑖 Ξ” 𝑖 βˆ’ 1 + β„Ž 𝑖 βˆ’ 1 Ξ” 𝑖 β„Ž 𝑖 + β„Ž 𝑖 βˆ’ 1 o t h e r w i s e , 𝑖 = 2 , 3 , … 𝑛 βˆ’ 1 , ( 5 . 1 ) and the end conditions are given as 𝑑 1 = ⎧ βŽͺ ⎨ βŽͺ ⎩ 0 i f Ξ” 1 ξ€· 𝑑 = 0 o r s g n 1 ξ€Έ ξ€· Ξ” β‰  s g n 1 ξ€Έ , Ξ” 1 + ξ€· Ξ” 1 βˆ’ Ξ” 2 ξ€Έ β„Ž 1 β„Ž 1 + β„Ž 2 𝑑 o t h e r w i s e , 𝑛 = ⎧ βŽͺ ⎨ βŽͺ ⎩ 0 i f Ξ” 𝑛 βˆ’ 1 ξ€· 𝑑 = 0 o r s g n 𝑛 ξ€Έ ξ€· Ξ” β‰  s g n 𝑛 βˆ’ 1 ξ€Έ , Ξ” 𝑛 βˆ’ 1 + ξ€· Ξ” 𝑛 βˆ’ 1 βˆ’ Ξ” 𝑛 βˆ’ 2 ξ€Έ β„Ž 𝑛 βˆ’ 1 β„Ž 𝑛 βˆ’ 1 + β„Ž 𝑛 βˆ’ 2 o t h e r w i s e . ( 5 . 2 )

6. Numerical Examples

In this section, a numerical demonstration of convexity-preserving scheme given in Section 4 is presented.

Example 6.1. Consider convex data set taken in Table 1. Figure 1 is produced by cubic Hermite spline. We remark that Figure 1 does not preserve the shape of convex data. To overcome this flaw, Figure 2 is produced by the convexity-preserving rational cubic spline interpolation developed in Section 4 with the values of free parameters 𝑒 𝑖 = 0 . 0 2 , 𝜈 𝑖 = 0 . 0 2 to preserve the shape of convex data. Numerical results of Figure 2 are determined by developed convexity preserving rational cubic spline interpolation shown in Table 2.

tab1
Table 1: Convex data set.
tab2
Table 2: Numerical results of Figure 2.
174048.fig.001
Figure 1: Cubic Hermite spline scheme.
174048.fig.002
Figure 2: Convexity shape-preserving rational cubic interpolation.

Example 6.2. Consider convex data set taken in Table 3. Figure 3 is produced by cubic Hermite spline, and it is easy to see that Figure 3 does not preserve the shape of convex data. Figure 4 is produced by the convexity-preserving rational cubic spline interpolation developed in Section 4 with the values of free parameters 𝑒 𝑖 = 0 . 0 2 , 𝜈 𝑖 = 0 . 0 2 to preserve the shape of convex data. Numerical results of Figure 4 are determined by developed convexity preserving rational cubic spline interpolation shown in Table 4.

tab3
Table 3: Convex data set [11].
tab4
Table 4: Numerical results of Figure 4.
174048.fig.003
Figure 3: Cubic hermite spline scheme.
174048.fig.004
Figure 4: Convexity shape-preserving rational cubic Interpolation.

7. Conclusion

In this paper, we have constructed a 𝐢 1 piecewise rational cubic function with three free parameters. Data-dependent constraints are derived to preserve the shape of convex data. Remaining two free parameters are left free for user’s choice to refine the convexity-preserving shape of the convex data as desired. No extra knots are inserted in the interval when the curve loses the convexity. The developed curve scheme has been tested through different numerical examples, and it is shown that the scheme is not only local and computationally economical but also visually pleasant.

Acknowledgments

The authors are highly obliged to the anonymous referees for the inspiring comments and the precious suggestions which improved our manuscript significantly. This work was fully supported by USM-RU-PRGS (1001/PMATHS/844031) from the Universiti Sains Malaysia and Malaysian Government is gratefully acknowledged. The first author does acknowledge University of Sargodha, Sargodha-Pakistan for the financial support.

References

  1. F. Bao, Q. Sun, J. Pan, and Q. Duan, β€œPoint control of rational interpolating curves using parameters,” Mathematical and Computer Modelling, vol. 52, no. 1-2, pp. 143–151, 2010. View at Publisher Β· View at Google Scholar
  2. M. Abbas, A. A. Majid, M. N. H. Awang, and J. M. Ali, β€œMonotonicity preserving interpolation using rational spline,” in Proceedings of the International MultiConference of Engineers and Computer Scientists (IMECS '11), vol. 1, pp. 278–282, Hong Kong, March 2011.
  3. S. Asaturyan, P. Costantini, and C. Manni, β€œLocal shape-preserving interpolation by space curves,” IMA Journal of Numerical Analysis, vol. 21, no. 1, pp. 301–325, 2001. View at Publisher Β· View at Google Scholar Β· View at Zentralblatt MATH Β· View at MathSciNet
  4. K. W. Brodlie and S. Butt, β€œPreserving convexity using piecewise cubic interpolation,” Computers and Graphics, vol. 15, no. 1, pp. 15–23, 1991. View at Scopus
  5. J. M. Carnicer, M. Garcia-Esnaola, and J. M. Peña, β€œConvexity of rational curves and total positivity,” Journal of Computational and Applied Mathematics, vol. 71, no. 2, pp. 365–382, 1996. View at Publisher Β· View at Google Scholar Β· View at Zentralblatt MATH Β· View at MathSciNet
  6. J. C. Clements, β€œA convexity-preserving C2 parametric rational cubic interpolation,” Numerische Mathematik, vol. 63, no. 2, pp. 165–171, 1992. View at Publisher Β· View at Google Scholar Β· View at Zentralblatt MATH Β· View at MathSciNet
  7. P. Costantini, β€œOn monotone and convex spline interpolation,” Mathematics of Computation, vol. 46, no. 173, pp. 203–214, 1986. View at Publisher Β· View at Google Scholar Β· View at Zentralblatt MATH
  8. P. Costantini and F. Fontanella, β€œShape-preserving bivariate interpolation,” SIAM Journal on Numerical Analysis, vol. 27, no. 2, pp. 488–506, 1990. View at Publisher Β· View at Google Scholar Β· View at Zentralblatt MATH Β· View at MathSciNet
  9. R. Delbourgo and J. A. Gregory, β€œShape preserving piecewise rational interpolation,” SIAM Journal on Scientific and Statistical Computing, vol. 6, no. 4, pp. 967–976, 1985. View at Publisher Β· View at Google Scholar Β· View at Zentralblatt MATH
  10. J. A. Gregory, β€œShape preserving spline interpolation,” Computer-Aided Design, vol. 18, no. 1, pp. 53–57, 1986. View at Scopus
  11. M. Tian and S. L. Li, β€œConvexity-preserving piecewise rational cubic interpolation,” Journal of Shandong University, vol. 42, no. 10, pp. 1–5, 2007. View at Zentralblatt MATH
  12. D. F. McAllister and J. A. Roulier, β€œAn algorithm for computing a shape-preserving osculatory quadratic spline,” ACM Transactions on Mathematical Software, vol. 7, no. 3, pp. 331–347, 1981. View at Publisher Β· View at Google Scholar Β· View at Zentralblatt MATH
  13. E. Passow and J. A. Roulier, β€œMonotone and convex spline interpolation,” SIAM Journal on Numerical Analysis, vol. 14, no. 5, pp. 904–909, 1977. View at Publisher Β· View at Google Scholar Β· View at Zentralblatt MATH
  14. J. A. Roulier, β€œA convexity preserving grid refinement algorithm for interpolation of bivariate functions,” IEEE Computer Graphics and Applications, vol. 7, no. 1, pp. 57–62, 1987. View at Scopus
  15. L. L. Schumaker, β€œOn shape preserving quadratic spline interpolation,” SIAM Journal on Numerical Analysis, vol. 20, no. 4, pp. 854–864, 1983. View at Publisher Β· View at Google Scholar Β· View at Zentralblatt MATH Β· View at MathSciNet
  16. M. H. Schultz, Spline Analysis, Prentice-Hall, Englewood Cliffs, NJ, USA, 1973.
  17. M. Sarfraz and M. Z. Hussain, β€œData visualization using rational spline interpolation,” Journal of Computational and Applied Mathematics, vol. 189, no. 1-2, pp. 513–525, 2006. View at Publisher Β· View at Google Scholar Β· View at Zentralblatt MATH Β· View at MathSciNet
  18. M. Sarfraz, β€œVisualization of positive and convex data by a rational cubic spline interpolation,” Information Sciences, vol. 146, no. 1–4, pp. 239–254, 2002. View at Publisher Β· View at Google Scholar Β· View at Zentralblatt MATH Β· View at MathSciNet
  19. M. Sarfraz, M. Hussain, and Z. Habib, β€œLocal convexity preserving rational cubic spline curves,” in Proceedings of the IEEE Conference on Information Visualization (IV '97), pp. 211–218, 1997.
  20. M. Sarfraz, β€œConvexity preserving piecewise rational interpolation for planar curves,” Bulletin of the Korean Mathematical Society, vol. 29, no. 2, pp. 193–200, 1992. View at Zentralblatt MATH
  21. M. Sarfraz, β€œInterpolatory rational cubic spline with biased, point and interval tension,” Computers and Graphics, vol. 16, no. 4, pp. 427–430, 1992. View at Scopus