Monotonicity Preserving Interpolation Using Rational Spline Muhammad Abbas,Ahmad.Abd Majid,Mohd Nain Hj Awang and Jamaludin.Md.Ali
Total Page:16
File Type:pdf, Size:1020Kb
Monotonicity Preserving Interpolation using Rational Spline Muhammad Abbas,Ahmad.Abd Majid,Mohd Nain Hj Awang and Jamaludin.Md.Ali Abstract—The main spotlight of this work is to visualize The problem of monotonicity preserving has been the monotone data to envision of very smooth and pleasant considered by number of authors [1]-[19] and references monotonicity preserving curves by using piecewise rational therein. Hussain & Sarfraz [1] has developed monotonicity cubic function. The piecewise rational cubic function has three shape parameters in each interval. We derive a simpler con- preserving interpolation by rational cubic function with strains on shape parameters which assurance to preservation four shape parameters which are arranged as two are free of the monotonicity curve of monotonic data. The free shape and the other two are automated shape parameters. The parameters will provide the extra freedom to the user to authors derived data dependent constraints on automated interactively generate visually more pleasant curves as desired. shape parameters which ensure the monotonicity and also The smoothness of the interpolation is C1 continuity. provide very pleasant curves but one automated shape Index Terms—Rational cubic function, monotone data, shape parameter is dependent on the other and hence the scheme parameters, free shape parameters, Interpolation. is economically very expensive. I. INTRODUCTION Fritch & Carlson [2] and Butland [3] have developed Moothness and pleasant shape preserving curves is very a piecewise cubic polynomials monotonicity preserving S important in Computer aided Geometric design (CAGD), interpolation. With positive derivatives and increasing data Computer Graphics (CG), and Data Visualization (DV).In in the cubic Hermite Polynomials they still violate the these fields, it is often needed to produce a monotonicity necessary monotonicity condition. These authors are made preserving interpolating curve corresponding to the given a modification in input derivatives in their interpolating monotone data. The one very important feature from the schemes if they contravene the necessary monotonicity interpolation methods is that make good judgment to study conditions. Schumaker [5] developed a very economical is its positivity and monotonicity which are important interpolation by piecewise quadratic polynomial but the aspects of the shape. Many physical situations where author also for interpolation they put in an extra knot entities are taken only monotone. In [14], monotonicity is in each interval. The constructed interpolant preserve the applied in the specification of Digital to Analog Converters monotonicity but have degree 2.Butt [18] & Higham [4] (DACs), Analog to Digital Converters (ADCs) and sensors. also used a piecewise cubic polynomials in which the These devices are used to control system applications where derivatives are not modified but the authors inserted extra non monotonicity is not acceptable. In cancer patients, knots where the curve lost the monotonicity. Gregory & Erythrocyte sedimentation rates (ESR) and Uric acid level Delbourgo [6] has introduced a solution of monotonicity in the patients who are suffering from gout are providing without inserting an extra knot and preserves monotonicity monotone data see[14]. Approximation of couples and quasi by rational quadratic function with quadratic denominator. couples in statistics see [16], rate of dissemination of drug Fahr and Kallay [7] used a monotone rational B-spline of in blood see [16], empirical option of pricing models in degree one to preserve the shape of monotone data. finance see [16] are good examples of monotone data. Also in Engineering, the study of tensile strength of the material For the pithiness of monotonicity preserving interpolation which give the monotone data because the tensile strength the reader is referred to: Delbourgo & Gregory [8] has of a material can be defined as the maximum force that a developed piecewise rational cubic interpolation for the material can withstand before breaking see for detail[12]. preserving monotonicity with no freedom to user to refine The forced applied usually is called stress and is studied the curve. Gregory & Sarfraz [9] introduced a rational alongside the stretch of the material referred as strain. So cubic spline with one tension parameter in each subinterval. the data from these two entities is always monotone see for Sarfraz [10] & [11], Hussain & Hussain [12] and Sarfraz detail [12]. & Hussain [13], Sarfraz et al [17] have introduced rational cubic function with two shape parameters that provide the desired monotone curves but there is no freedom for Manuscript received September 03, 2010; revised December 31, 2010. the user to modify the curves hence is may be unsuitable This work was fully supported by the Universiti Sains Malaysia under Grant FRGS(203/PJJAUH/6711120). for interactive design. Hussain et al [14] also developed Muhammad Abbas is with the School of Mathematical Sciences,Universiti a rational function for the preserving monotonicity with Sains Malaysia,USM 11800 Pulau Pinang, Malaysia, Corresponding single shape parameter which is very economical and E-mail:[email protected]. Ahmad.Abd Majid is with the School of Mathematical Sciences,Universiti generates pleasant curve but have limited flexibility in Sains Malaysia,USM 11800 Pulau Pinang, Malaysia. particular curves modification. Sarfraz [15] introduced Mohd Nain Hj Awang is with the School of Distance Education, Universiti an C2 interpolant using a general piecewise rational Sains Malaysia,USM 11800 Pulau Pinang, Malaysia. Jamaludin.Md.Ali is with the School of Mathematical Sciences,Universiti cubic (GPRC) with two shape parameters to preserves Sains Malaysia,USM 11800 Pulau Pinang, Malaysia. the monotonicity but there is also no freedom to the user as well as the scheme is expansive than the proposed scheme. In this paper, ui; vi are free parameters which can be used freely for the modification of the curve and wi be the This work is particularly concerned with the monotone automated shape parameter which preserves the monotonicity data using the cubic rational function with three shape of monotone data. parameters, they are arranged in such a manner that two shape parameters are provide extra independence to the B. Determination of Derivatives user to modify the curve as desired and the other one is constrained to satisfy the monotonic properties of curves Mostly the derivative values or parameters fdig are not through monotone data. In section (I-C), we show how the given then it has been derived by two means which one single parameter produces monotonicity preserving curve from the give data set (xi; fi); i = 1; 2; 3; :::::::::; n or by through monotone data which are given in Tables I,II and some other methods. In this paper, we are determined from III, also providing an interactive and pleasant curve as the given data for the smoothness of interpolant (1). These compared to [14] while the other two shape parameters methods are the approximation based on many mathematical are used to refine the curve as desired by the user. In the theories.The following two method are borrowed from Hus- proposed scheme there is no insertion of extra knot and is sain & Sarfraz [1]. The descriptions of such approximations also more economical as compared to the existing schemes. are as follow: 1) Arithmetic Mean Method: This method is the three The rest of this paper is organized as follows. we construct point difference approximation with a rational cubic function in section (I-A) and the deter- ½ 0 if ¢i¡1 = 0 or ¢i = 0 mination of the derivatives is given in section (I-B). The di = ¤ di otherwise ; i = 2; 3; :::::n ¡ 1 construction of the monotonicity preserving interpolation for (6) monotone data in section (I-C) and some numerical examples And the end conditions are given as, are discussed in section (I-D). Finally the conclusion of the ½ ¤ paper is discussed in section (II). 0 if ¢1 = 0 or sgn(d1) 6= sgn(¢1) d1 = ¤ d1 otherwise A. Rational cubic function ½ (7) 0 if ¢ = 0 or sgn(d¤ ) 6= sgn(¢ ) 1 n¡1 n n¡1 In this section, a C rational cubic function [19] with dn = ¤ dn otherwise three shape parameters with cubic denominator has been (8) developed. Let f(xi; fi) ; i = 0; 1; 2; ::::::::ng be a given set Where of data points defined over the interval [a, b], where a = ¤ 1 di = (hi¢i¡1 + hi¡1¢i)=(hi + hi¡1) x0 < x1 < ::::::::: < xn = b. The C piecewise rational ¤ d1 = ¢1 + (¢1 ¡ ¢2)h1=(h1 + h2) cubic function with three parameters are defined over each ¤ dn = ¢n¡1 + (¢n¡1 ¡ ¢n¡2)hn¡1=(hn¡1 + hn¡2) subinterval Ii = [xi; xi+1], i =0, 1, 2,. ,n -1 as: p (θ) 2) Geometric Mean Method: These are non-linear approx- S(x) = S (x) = i (1) i q (θ) imations which are defined as: i ½ with 0; if ¢i¡1 = 0 or ¢i = 0 di = hi=hi¡1+hi hi¡1=hi¡1+hi p (θ) = u f (1 ¡ θ)3 + (w f + u h d ) θ(1 ¡ θ)2 ¢i¡1 ¢i ; i = 2; 3; 4; :::; n ¡ 1 i i i i i i i i (9) + (w f ¡ v h d ) θ2 (1 ¡ θ) + v f θ3 i i+1 i i i+1 i i+1 The end conditions are given as: q (θ) = u (1 ¡ θ)3 + w θ(1 ¡ θ) + v θ3 i i i i 8 f3¡f1 where < 0; if ¢1 = 0 or ¢3;1 = = 0 n o x3¡x1 fi+1 ¡ fi d1 = h1=h2 (10) h = x ¡ x ; ¢ = (2) ¢1 i i+1 i i : ¢1 ; otherwise hi ¢3;1 (x ¡ xi) 8 θ = ; 0 · θ · 1 (3) < fn¡fn¡2 0; if ¢n¡1 = 0 or ¢n;n¡2 = x ¡x = 0 hi n o n n¡2 dn = hn¡1=hn¡2 ¢n¡1 : ¢n¡1 ; otherwise The rational cubic function (1) has the following properties, ¢n;n¡2 (11) S(xi) = fi;S(xi+1) = fi+1 S 0(x ) = d ;S 0(x ) = d (4) i i i+1 i+1 C.