• No results found

C1 monotone cubic Hermite interpolant

N/A
N/A
Protected

Academic year: 2021

Share "C1 monotone cubic Hermite interpolant"

Copied!
5
0
0

Loading.... (view fulltext now)

Full text

(1)

Contents lists available atSciVerse ScienceDirect

Applied Mathematics Letters

journal homepage:www.elsevier.com/locate/aml

C

1

monotone cubic Hermite interpolant

R.J. Cripps

a,∗

, M.Z. Hussain

b

aSchool of Mechanical Engineering, University of Birmingham, Birmingham, B15 2TT, UK bDepartment of Mathematics, University of the Punjab, Lahore, Pakistan

a r t i c l e i n f o Article history:

Received 16 May 2011

Received in revised form 3 January 2012 Accepted 20 February 2012 Keywords: Bézier Rational Weights Monotonic Interpolation

a b s t r a c t

Constraining an interpolation to be shape preserving is a well established technique for modelling scientific data. Many techniques express the constraint variables in terms of abstract quantities that are difficult to relate to either physical values or the geometric properties of the interpolant. In this paper, we construct a piecewise monotonic interpolant where the degrees of freedom are expressed in terms of the weights of the rational Bézier cubic interpolant.

© 2012 Elsevier Ltd. All rights reserved.

1. Introduction

There exist many interpolating methods which derive sufficient conditions to ensure the resulting interpolant preserves some geometric aspect of the data, for example, monotonicity. All develop constraints based on parameters of the interpolating polynomial which either has no correspondence with the data or the natural geometry of the interpolant. For example, Fritsch and Butland [1], Fritsch and Carlson [2] and Higham [3] used piecewise cubic Hermite polynomials to interpolate monotone data (increasing data with positive derivatives). Although the cubic Hermite schemes interpolate data and derivatives, they did not preserve the shape of monotone data. The authors in [1–3] proposed different remedies of the problem, for example, the schemes. [2,4] first identified the interval in which monotonicity was lost by ordinary cubic Hermite interpolant then modified the derivatives to obtain the required results. The scheme of [3] Higham inserts extra knots to preserve monotonicity. The scheme proposed by Schumaker [5] was economical due to piecewise quadratic polynomial interpolant and preserved monotonicity. However, its drawback is that it is of degree two only. Gregory and Delbourgo [4] introduced a family of rational quadratic functions with quadratic denominator. They exploited the free parameters of the rational quadratic function to preserve the shape of monotone data. Hussain and Hussain [6] used a rational cubic function to preserve the shape of monotone curve data, again by exploiting the free parameters of the function. Hussain and Sarfraz [7] used a rational cubic function with four free parameters. Two parameters are the constraints for the shape preserving monotone data while two parameters are free for the user to refine the shape of monotone curve. Hussain et al. [8] used a rational cubic function and imposed the shape preserving constraints on the functions one free parameter.

The aim of this paper is to develop a monotonicity preserving curve interpolant based on rational cubic Bézier basis functions where the sufficient conditions are expressed in terms of the weights. We first derive the sufficient conditions for a rational cubic Bézier univariate function to preserve monotonicity. This is then readily extended to vector valued data.

Corresponding author.

E-mail address:[email protected](R.J. Cripps).

0893-9659/$ – see front matter©2012 Elsevier Ltd. All rights reserved.

(2)

2. Basics

Given two end points, P0and P3with P3

>

P0, and two end derivatives, D0and D3, construct a monotonically increasing

rational Hermite interpolant. Expressed as a rational cubic Bézier, we have

P

(

u

) =

p

(

u

)

ω(

u

)

=

3

i=0 bi,3

(

u

) ω

iPi 3

i=0 bi,3

(

u

) ω

i

,

where bi,3

(

u

) =

3Ci

(

1

u

)

3−iui are the Bernstein basis functions and Pii

=

0

, . . . ,

3 are the control points of the Bézier curve. Let the input data be the end points and end derivatives, i.e. P0

=

P

(

0

),

P3

=

P

(

1

);

D0

= ˙

P

(

0

)

& D3

= ˙

P

(

1

)

. Then

we require the conditions on the weights,

ω

ii

=

0

, . . . ,

3 such thatR

˙

(

u

) >

0. 3. Analysis

The sufficient conditions on the weights of the rational cubic Bézier interpolant to preserve monotonicity is

ω

0

ω

3

ω

1

ω

2

>

3

.

 (1)

Proof

Writing

ω(

u

)

P

(

u

) =

p

(

u

)

and differentiating with respect to u gives

˙

ω(

u

)

P

(

u

) + ω(

u

) ˙

P

(

u

) = ˙

p

(

u

).

Rearranging gives

˙

P

(

u

) =

1

ω(

u

)

[p

˙

(

u

) − ˙ω(

u

)

Pu]

=

1

ω(

u

)

2[

ω(

u

) ˙

p

(

u

) − ˙ω(

u

)

p

(

u

)

]

.

We note that

˙

P

(

0

) =

3

ω

1

ω

0

(

P1

P0

)

˙

P

(

1

) =

3

ω

2

ω

3

(

P3

P2

) .

Thus for monotonicity we require

S

(

u

) = ω(

u

) ˙

P

(

u

) − ˙ω(

u

)

p

(

u

) =

[S0

(

u

) −

S1

(

u

)

]

>

0 since

ω(

u

)

2

>

0. Now S0

(

u

) =

3 5

i=0 bi,5

(

u

)

P0,i and S1

(

u

) =

3 5

i=0 bi,5

(

u

)

P1,i

,

where P0,0

=

ω

0

1P1

ω

0P0

)

P0,1

=

3 5

ω

1

1P1

ω

0P0

) +

2 5

ω

0

2P2

ω

1P1

)

P0,2

=

1 10

ω

0

3P3

ω

2P2

) +

6 10

ω

1

2P2

ω

1P1

) +

3 10

ω

2

1P1

ω

0P0

)

P0,3

=

3 10

ω

1

3P3

ω

2P2

) +

6 10

ω

2

2P2

ω

1P1

) +

1 10

ω

3

1P1

ω

0P0

)

P0,4

=

3 5

ω

2

3P3

ω

2P2

) +

2 5

ω

3

2P2

ω

1P1

)

P0,5

=

ω

3

3P3

ω

2P2

)

(3)

and P1,0

=

1

ω

0

) ω

0P0 P1,1

=

3 5

1

ω

0

) ω

1P1

+

2 5

2

ω

1

) ω

0P0

P1,2

=

3 10

1

ω

0

) ω

2P2

+

6 10

2

ω

1

) ω

1P1

+

1 10

3

ω

2

) ω

0P0

P1,3

=

1 10

1

ω

0

) ω

3P3

+

6 10

2

ω

1

) ω

2P2

+

3 10

3

ω

2

) ω

1P1

P1,4

=

2 5

2

ω

1

) ω

3P3

+

3 5

3

ω

2

) ω

2P2

P1,5

=

3

ω

2

) ω

3P3

.

Now S

=

3 5

i=0 bi,5

(

u

) 

P0,i

P1,i

 =

3 5

i=0 bi,5

(

u

)

Pi

,

where P0

=

ω

0

ω

1

(

P1

P0

)

P1

=

1 5

ω

0

ω

1

(

P1

P0

) +

2 5

ω

0

ω

2

(

P2

P0

)

P2

=

2 10

ω

0

ω

2

(

P2

P0

) +

1 10

ω

0

ω

3

(

P3

P0

) +

3 10

ω

1

ω

2

(

P2

P1

)

P3

=

1 10

ω

0

ω

3

(

P3

P0

) +

3 10

ω

1

ω

2

(

P2

P1

) +

2 10

ω

1

ω

3

(

P3

P1

)

P4

=

2 5

ω

1

ω

3

(

P3

P1

) +

1 5

ω

2

ω

3

(

P3

P2

)

P5

=

ω

2

ω

3

(

P3

P2

) .

This quintic is in fact only a quartic, since the sum of all the u5terms is zero, which can be expressed as

B

(

u

) =

3 4

i=0 bi,4

(

u

)

Bi

,

where B0

=

ω

0

ω

1

[

P1

P0

]

B1

=

1 2

ω

0

ω

2

[

P2

P0

]

B2

=

1 2

ω

1

ω

2

[

P2

P1

] +

1 6

ω

0

ω

3

[

P3

P0

]

B3

=

1 2

ω

1

ω

3

[

P3

P1

]

B4

=

ω

3

ω

2

[

P3

P2

]

.

ExpressingBiin terms of the input data gives

B0

=

ω

0

ω

1

·

[P1

P0]

=

ω

0

ω

1

·

P0

+

ω

0 3

ω

1 D0

P0

=

ω

0

ω

1

·

ω

0 3

ω

1 D0

=

1 3

ω

2 0D0

,

B1

=

ω

0

ω

2 2

·

[P2

P0]

=

ω

0

ω

2 2

·

P3

ω

3 3

ω

2 D3

P0

B2

=

1 6[

ω

0

ω

3

·

(

P3

P0

) +

3

ω

1

ω

2

(

P2

P1

)

]

=

1 6

0

ω

3

+

3

ω

1

ω

2

) (

P3

P0

) −

3

ω

1

ω

2

ω

3 3

ω

2 D3

+

ω

0 3

ω

1 D0



B3

=

ω

1

ω

3 2

·

[P3

P1]

=

ω

1

ω

3 2

·

P3

P0

ω

0 3

ω

1 D0



B4

=

ω

2

ω

3

·

[P3

P2]

=

ω

2

ω

3

·

P3

P3

+

ω

3 3

ω

2 D3

=

ω

2

ω

3

·

ω

3 3

ω

2 D3

=

1 3

ω

2 3D3

.

(4)

Now

ω

i

>

0

;

Pi

>

0 for all i thus if the control values

(

Bi

)

are positive, the bounding box property implies B

(

u

) >

0. Therefore, we require sufficient conditions such thatBi

>

0. Considering eachBiin turn.

B0

=

1 3

ω

2 0D0

,

and since D0

>

0,B0

>

0. B1

=

ω

0

ω

2 2

·

P3

ω

3 3

ω

2 D3

P0

.

ForB1

>

0, we require 3

P3

P0 D3

>

ω

3

ω

2 (2) as P2

>

0. B4

=

1 3

ω

2 3D3

,

and since D3

>

0,B4

>

0. B3

=

ω

1

ω

3 2

·

P3

P0

ω

0 3

ω

1 D0



.

ForB3

>

0, we require 3

P3

P0 D0

>

ω

0

ω

1

.

(3) Finally, B2

=

1 6

0

ω

3

+

3

ω

1

ω

2

) (

P3

P0

) −

3

ω

1

ω

2

ω

3 3

ω

2 D3

+

ω

0 3

ω

1 D0



.

ForB2

>

0, we require

0

ω

3

+

3

ω

1

ω

2

) (

P3

P0

) >

3

1 3

ω

3

ω

1D3

+

1 3

ω

0

ω

2D0

.

(4)

Now, using constraints(2)and(3)in constraint(4)(ensuringB1&B3

>

0), gives

3

ω

1

ω

2

ω

3D3 3

ω

2

+

ω

0D0 3

ω

1

<

3

ω

1

ω

2[

(

P3

P0

) + (

P3

P0

)

]

=

6

ω

1

ω

2

(

P3

P0

) .

Therefore, if

0

ω

3

+

3

ω

1

ω

2

) (

P3

P0

) >

6

ω

1

ω

2

(

P3

P0

)

, then

0

ω

3

+

3

ω

1

ω

2

) (

P3

P0

) >

3

ω

1

ω

2

ω

3D3 3

ω

2

+

ω

0D0 3

ω

1

.

Hence,

ω

0

ω

3

+

3

ω

1

ω

2

>

6

ω

1

ω

2 i.e.

ω

0

ω

3

ω

1

ω

2

>

3

.

 (5)

It is interesting to note that the constraints on the weights,

ω

i, given in(1)impose conditions on the input data as expected. For example, using constraints(2),(3)and(1)implies

D0D3

<

9

ω

1

ω

2

ω

0

ω

3

(

P3

P0

)

2

which means that the end slopes are constrained by the chord P3P0. This, of course, is a constraint on the initial data and can

be used as a pre-check that the original input data is itself monotonic. 4. Conclusion and future research

In this study, the rational Bézier cubic interpolant is used to construct a C1monotone curve to monotone data. The control

points of rational Bézier cubic interpolant are estimated by the cubic Hermite interpolation properties. A range of weight functions is determined for monotone interpolation of irregular curve data. The proposed interpolation scheme works for both computed and prescribed derivatives. Future research will be to extend the approach for the construction of monotonic surface interpolants [9].

(5)

Acknowledgements

The authors would like to thank the anonymous referees for their constructive suggestions for improving the presentation of the article and highlighting the relationship between the weights and end slopes.

References

[1] F.N. Fritsch, J. Butland, A method for constructing local monotone piecewise cubic interpolants, SIAM Journal of Scientific and Statistical Computing 5 (1984) 300–304.

[2] F.N. Fritsch, R.E. Carlson, Monotone piecewise cubic interpolation, SIAM Journal of Numerical Analysis 17 (2) (1980) 238–246.

[3] D.J. Higham, Monotone piecewise cubic interpolation with applications to ODE plotting, Journal of Computational and Applied Mathematics 39 (1992) 287–294.

[4] J.R. Gregory, R. Delbourgo, Piecewise rational quadratic interpolation to monotonic data, SIAM Journal of Numerical Analysis 3 (1983) 141–152. [5] L.L. Schumaker, On shape preserving quadratic spline interpolation, SIAM Journal of Numerical Analysis 20 (1983) 854–864.

[6] M.Z. Hussain, M. Hussain, Visualization of data preserving monotonicity, Applied Mathematics and Computation 190 (2007) 1353–1364. [7] M.Z. Hussain, M. Sarfraz, Monotone piecewise rational cubic interpolation, International Journal of Computer Mathematics 86 (3) (2009) 423–430. [8] M.Z. Hussain, M. Sarfraz, M. Hussain, Scientific data visualization with shape preserving C1 rational cubic interpolation, European Journal of Pure and

Applied Mathematics 3 (2) (2010) 194–212.

References

Related documents

Regarding gender differences, the boys in the current study reported fewer behaviors as bullying in comparison to the girls and a larger proportion of girls compared to boys

Speci…cally, Baldwin and Harrigan (2008) uses the quality production function nctf = f = p f +1 , &gt; 1 ; to model the relationship between the …rm price and

[r]

Thus, this study will explore and examine the issues on ownership of tak?ful benefit to determine the ownership in Participant Risk Fund (PRF) or tabarruÑ fund since the

The coefficients indicate that couples with older children ( CPO ), lone parents with older ( CPO ) and both younger and older children ( CPB ), divorced or separated household

Specifically, we configure various secondary continuous integration builds to execute performance unit tests, integration tests and load (or stress) tests. Because a secondary

In this the machine has ability to recognize and classify After constructing the features vector, one algorithm that classified the data that have been obtained

Considering plates with a dominant longitudinal component (higher angles) this appears to be beneficial for the heat transfer since the two main substreams are mixed more