<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">APM</journal-id><journal-title-group><journal-title>Advances in Pure Mathematics</journal-title></journal-title-group><issn pub-type="epub">2160-0368</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/apm.2018.81003</article-id><article-id pub-id-type="publisher-id">APM-81915</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  An Unconditionally Monotone &lt;i&gt;C&lt;/i&gt;&lt;sup&gt;2&lt;/sup&gt; Quartic Spline Method with Nonoscillation Derivatives
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Jin</surname><given-names>Yao</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Karl</surname><given-names>E. Nelson</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Lawrence Livermore National Laboratory, Livermore, CA, USA</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>yao2@llnl.gov(JY)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>09</day><month>01</month><year>2018</year></pub-date><volume>08</volume><issue>01</issue><fpage>25</fpage><lpage>40</lpage><history><date date-type="received"><day>28,</day>	<month>November</month>	<year>2017</year></date><date date-type="rev-recd"><day>21,</day>	<month>January</month>	<year>2018</year>	</date><date date-type="accepted"><day>24,</day>	<month>January</month>	<year>2018</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  A one-dimensional monotone interpolation method based on interface reconstruction with partial volumes in the slope-space utilizing the Hermite cubic-spline, is proposed. The new method is only quartic, however is 
  C
  <sup>2</sup>
   and unconditionally monotone. A set of control points is employed to constrain the curvature of the interpolation function and to eliminate possible nonphysical oscillations in the slope space. An extension of this method in two-dimensions is also discussed.
 
</p></abstract><kwd-group><kwd>Monotone Interpolation</kwd><kwd> Quartic</kwd><kwd> Non-Oscillation Derivative</kwd><kwd> Interface Reconstruction</kwd><kwd> Slope Space</kwd><kwd> Hermit Spline</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Existing monotone cubic interpolation methods [<xref ref-type="bibr" rid="scirp.81915-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.81915-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.81915-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.81915-ref4">4</xref>] are successful in solving many practical problems. However, they are C<sup>1</sup> and not fit for certain applications that require a higher degree of smoothness. For a C<sup>2</sup> continuous monotone interpolation, a quintic polynomial is required [<xref ref-type="bibr" rid="scirp.81915-ref5">5</xref>] [<xref ref-type="bibr" rid="scirp.81915-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.81915-ref7">7</xref>] , or some subdivision of intervals needs to be performed [<xref ref-type="bibr" rid="scirp.81915-ref8">8</xref>] [<xref ref-type="bibr" rid="scirp.81915-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.81915-ref10">10</xref>] . An issue with these methods is that the derivative of the interpolation curve can have global oscillations and this limits their usage. There are methods existing for either monotone [<xref ref-type="bibr" rid="scirp.81915-ref11">11</xref>] [<xref ref-type="bibr" rid="scirp.81915-ref12">12</xref>] or with nonoscillation derivatives [<xref ref-type="bibr" rid="scirp.81915-ref13">13</xref>] [<xref ref-type="bibr" rid="scirp.81915-ref14">14</xref>] . In general, a monotone polynomial spline method requires certain constraints on their slope estimate to be satisfied.</p><p>In this article, we propose an unconditionally monotone interpolation method that is only quartic, with the C<sup>2</sup> continuity over the entire domain. The new method has no nonphysical oscillation with its derivative and is 3<sup>rd</sup> order accurate in space.</p></sec><sec id="s2"><title>2. The Solution Procedure</title><sec id="s2_1"><title>2.1. Description of the Problem</title><p>A set of points { x i , s i } are specified for i = 0 , 1 , 2 , ⋯ , N with { x i } ordered increasingly as well as { s i } , i.e. x i &lt; x i + 1 and s i &lt; s i + 1 hold for each integer i in range, as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>. Here N is the number of intervals defined by the ( N + 1 ) given points.</p><p>The problem is to construct an explicit polynomial curve g ( x ) that passes all the given data points, i.e., g ( x i ) = s i , for 0 ≤ i ≤ N , and has a continuous second derivative. In addition, the curve must be strictly increasing (being monotonic g ′ ( x ) &gt; 0 ). Furthermore, the derivative of the interpolation function, g ′ ( x ) should have no unnecessary oscillations. <xref ref-type="fig" rid="fig2">Figure 2</xref> demonstrates the oscillation in the derivative space of a monotone interpolation obtained with a simple Hermite-interpolation method applied to a radioactive particle energy distribution problem.</p></sec><sec id="s2_2"><title>2.2. Reduction of the Problem</title><p>We consider a reduced problem in the slope space of the original problem. Let the slope function f ( x ) ≡ g ′ ( x ) , then if f ( x ) satisfy that</p><p>f ( x ) &gt; 0 , (1)</p><p>∫ x i x i + 1 f ( x &#175; ) d x &#175; = Δ s i ≡ s i + 1 − s i , (2)</p><p>and f ( x ) has a continuous first derivative (being C<sup>1</sup>). Then, we can see that the integral of f ( x )</p><p>g ( x ) = s 0 + ∫ 0 x f ( x &#175; ) d x &#175; , (3)</p><p>not only passes through all the data points, but also has a well-defined second derivative. Therefore, we pursue the solution of the reduced problem by finding certain f ( x ) that satisfy the above given constraints.</p><p>The domain [ x 0 , x N ] is divided to N intervals with interval i defined by [ x i , x i + 1 ] . The partial area Δ s i is bounded by two lines: y = h i , y = 0 , and the boundaries of interval i, here</p><p>h i ≡ Δ s i / Δ x i , (4)</p><p>where Δ x i ≡ x i + 1 − x i . A solution of the problem must satisfy Equations (1), (2), and (3), and without unnecessary oscillation.</p><p>The above description corresponds to certain statistics problems such as re-binning of a radioactive particle energy distribution (see <xref ref-type="fig" rid="fig3">Figure 3</xref> on the next page), with the x-axis being the energy and y-axis being the denisty of particles in each energy bin. A requirement for energy re-binning is that the curve f ( x ) has to be smooth for differentiation, i.e. g ( x ) is C<sup>2</sup>. Not only that, the solution needs to have no oscillation for a minimal slope variation. Therefore, as the solution is mapped to a different bin-structure, it still makes physical sense.</p><p>There can be an infinite number of candidates of the solution. To limit the choices we consider a Hermite cubic-spline between an arbitrarily given pair of data points ( x L , y L ) and ( x R , y R ) (here L and R stand for the “left” and “right” boundaries of an interval) such that</p><p>x ( u ) = x L H 00 ( u ) + x R H 01 ( u ) + p L H 10 ( u ) + p R H 11 ( u ) , y ( u ) = y L H 00 ( u ) + y R H 01 ( u ) + q L H 10 ( u ) + q R H 11 ( u ) , (5)</p><p>where 0 ≤ u ≤ 1 is a non-dimensional parameter. p L , p R are the estimates of ( d x / d u ) , q L , q R are the estimates of ( d y / d u ) on the left and the right ends of a given interval. H i j ( u ) are the Hermit cubic spline base functions that</p><p>H 00 ( u ) = 1 + u 2 ( 2 u − 3 ) ,     H 01 ( u ) = u 2 ( 3 − 2 u ) , H 10 ( u ) = u ( u − 1 ) 2 ,     H 11 ( u ) = u 2 ( u − 1 ) . (6)</p><p>Next, we will show that how f ( x ) can be constructed with the above Hermite spline to satisfy Equations (1), (2), and (3), by properly choosing a set of control points.</p></sec><sec id="s2_3"><title>2.3. Area-Matching for Selecting Control Points on Interval-Walls</title><p>The slope of f ( x ) , f ′ ( x ) ≡ g ″ ( x ) at each inner data point can be estimated numerically. For example, using a quadratic interpolation on the three points ( x i − 1 , s i − 1 ) ,   ( x i , s i ) and ( x i + 1 , s i + 1 ) , one is able to obtain an estimate of f ′ ( x i ) , except at the left and right boundaries. We consider the reduced problem as an interface reconstruction problem for volume conservation. The approach is to construct the geometry of the interface contained in interval i and to match the partial volume (area) Δ s i for each i. The interface piece constructed in interval i in general does not match with the pieces constructed in its neighbor intervals on boundaries. We will apply a Hermit spline later to eliminate the gaps and ensure a global slope continuation of f ( x ) .</p><p>To start with, we consider a given internal [ x i , x i + 1 ] as shown in <xref ref-type="fig" rid="fig4">Figure 4</xref>. The average of f ( x ) in this interval, h<sub>i</sub> is defined in Equation (4). We replace the subscripts “i” with “L” (left) and “i + 1” with “R” (right) for generality and let the width of the interval be Δ ≡ x R − x L . We build a local Cartesian coordinate system ( ξ , η ) with its origin at ( x L + Δ 2 , h ) , and let a quadratic curve represent the interface, such that</p><p>η = a ξ 2 + b ξ + c .</p><p>For slope match at the left end ξ = − Δ 2 and the right end ξ = + Δ 2 , we have</p><p>− a Δ + b = f ′ L ,     a Δ + b = f ′ R .</p><p>The area matching means the integral of η over the interval is 0, or</p><p>a 12 Δ 3 + c Δ = 0.</p><p>Solving for a, b and c, one arrives at</p><p>a = f ′ R − f ′ L 2 Δ ,     b = f ′ R + f ′ L 2 ,     c = Δ 24 ( f ′ L − f ′ R ) . (7)</p><p>The constant term c carries the position of the interface at the middle of the interval to the 3<sup>rd</sup> order accuracy (for our fitting here is quadratic).</p><p>We will use these mid interval interface positions obtained from the above quadratic fitting as a set of control points to construct our first approximation of the solution. Each interval wall x = x i intersects the Hermit spline curve passing the set of the mid-interval control points and the intersection is taken as a fixed control point. We have ( 2 N + 1 ) control points C k , ( k = 0 , 1 , 2 , ⋯ , 2 N ) . The ( N + 1 ) of them with even subscripts are on the walls of the intervals and are fixed, the rest N of them above the middle points of intervals are to be shifted vertically by matching volumes again.</p></sec><sec id="s2_4"><title>2.4. Area-Matching for Selecting Mid Interval Control Points</title><p>We are to construct a Hermit spline that passes all the control points. For an exact area match, we break each original interval into two subintervals about the control point in the middle of the interval, see <xref ref-type="fig" rid="fig5">Figure 5</xref>. With the two neighbor mid interval points, there are three mid interval control points involved in the area-matching. We compute the heights of the mid interval control points by solving a tri-linear linear system.</p><p>In <xref ref-type="fig" rid="fig6">Figure 6</xref>, the shadowed area A H under a Hermite cubic spline in the interval [ x L , x R ] can be calculated with</p><p>A H = ∫ 0 1 y ( u ) x ′ ( u ) d u . (8)</p><p>Let the control point immediately left to x = x L be L L = ( x L L , y L L ) , and the</p><p>one immediately right to x = x R be R R = ( x R R , y R R ) . Evaluation of the above area integral provides that</p><p>A H = σ 00 y L + σ 01 y R + 1 2 ( σ 10 ( y R − y L L ) + σ 11 ( y R R − y L ) ) , (9)</p><p>where</p><p>σ 00 = x L I 0000 + x R I 0001 + p L I 0010 + p R I 0011 , σ 01 = x L I 0100 + x R I 0101 + p L I 0110 + p R I 0111 , σ 10 = x L I 1000 + x R I 1001 + p L I 1010 + p R I 1011 , σ 11 = x L I 1100 + x R I 1101 + p L I 1110 + p R I 1111 . (10)</p><p>Our choices of the x-slope terms are</p><p>p L = 1 2 ( x R − x L L ) ,     p R = 1 2 ( x R R − x L ) ,</p><p>and the y-slope terms are</p><p>q L = 1 2 ( y R − y L L ) ,     q R = 1 2 ( y R R − y L ) . (11)</p><p>They have been explicitly substituted in Equation (9) the expression of the physical area. The σ i j terms depend only on the x-coordinates of the boundaries of an interval. The terms I i j k l are area integrals of the Hermit spline defined as</p><p>I i j k l = ∫ 0 1 H i j ( u ) H ′ k l ( u ) d u . (12)</p><p>Each of i , j , k , l takes the values 0 or 1. These integrals are evaluated as the following</p><p>I 0000 = − 1 2 , I 0010 = 1 10 , I 0001 = 1 2 , I 0011 = − 1 10 ,</p><p>I 1000 = − 1 10 , I 1010 = 0 , I 1001 = 1 10 , I 1011 = − 1 60 ,</p><p>I 0100 = − 1 2 , I 0110 = − 1 10 , I 0101 = 1 2 , I 0111 = 1 10 ,</p><p>I 1100 = 1 10 , I 1110 = 1 60 , I 1101 = − 1 10 , I 1111 = 0.</p><p>Now let us consider the i<sup>th</sup> interval, with which 3 control points are involved, see in <xref ref-type="fig" rid="fig7">Figure 7</xref>. They are C 2 i = ( x i , y i ) , C 2 i + 1 = ( x i + 1 2 , y i + 1 2 ) and C 2 ( i + 1 ) = ( x i + 1 , y i + 1 ) with x i + 1 2 ≡ 1 2 ( x i + x i + 1 ) , and y i + 1 2 to be determined. For area matching we</p><p>need to enforce that the sum of the area contribution from the left subinterval and the right subinterval to equal an known value that</p><p>A H left + A H right = h i Δ x i ≡ s i + 1 − s i . (13)</p><p>Utilizing Equation (9) one arrives at</p><p>A H left = σ 00 left y i + σ 01 left y i + 1 2 + 1 2 ( σ 10 left ( y i + 1 2 − y i − 1 2 ) + σ 11 left ( y i + 1 − y i ) ) ,</p><p>A H right = σ 00 right y i + 1 2 + σ 01 right y i + 1 + 1 2 ( σ 10 right ( y i + 1 − y i ) + σ 11 right ( y i + 3 2 − y i + 1 2 ) ) .</p><p>Because each of the σ i j terms involves only the x-coordinates of the control points, it is a constant. The sum of areas under each Hermit cubit splines defined on a subinterval is simply a linear combination of y i − 1 2 , y i + 1 2 , and y i + 3 2 . Therefore, we have a tri-diagonal linear system involving all intervals to solve in order to match the area exactly in each interval, with certain boundary conditions provided for the left-most and the right-most intervals.</p></sec><sec id="s2_5"><title>2.5. Boundary Conditions</title><p>For the interval on the left boundary, we must specify the slope terms p L , q L . For the interval on the right boundary, we must provide the slope terms p R , q R as well. Currently we assume two kinds of boundary conditions. The first is a symmetrical boundary condition with which one sets a ghost control points at the reflection point of the nearest inner control point. The other one is a counter-symmetric condition by setting a ghost control point out of the boundary by extending the line-segment defined by the two nearest known control points involved (see <xref ref-type="fig" rid="fig8">Figure 8</xref>). These ghost points provide closure of the solution of the tri-diagonal linear system mentioned in the last subsection.</p></sec><sec id="s2_6"><title>2.6. Positivity in the Slope-Space</title><p>We have obtained f ( x ) with a Hermite cubic spline on the control points computed in the previous sections. This solution may not necessarily be positive when h i is close or equal to zero. Thus, we need to have a treatment in the possible case this negativity occurs. Fortunately, we have a nearly trivial treatment that is rather easy to perform, at least for isolated cases.</p><p>Considering the worst case that Δ s i = 0 , in the ( g ( x ) , x ) space this means g ( x ) must be a constant in the corresponding interval. Equivalently, the slope f ( x ) must be zero everywhere in interval i, otherwise any variation would create some negative slopes then the monotone condition is violated. Specifically, the slopes at the two ends must be zeros.</p><p>Thus, we choose to enforce the slope terms q L , q R to zeros in the Hermite cubic spline in case an interval contains a point with a negative f ( x ) . This means the two control points on interval boundaries are at the same height. Since we also assume a troubled interval is isolated, we lift the neighbor control</p><p>points at ( x i − 1 2 , y i − 1 2 ) and ( x i + 3 2 , y i + 3 2 ) to match the areas in the two neighbor</p><p>intervals. Because the area match condition is linear for a single variable y i − 1 2 or y i + 3 2 in either neighbor interval so the solution is trivial and does not affect rest of the intervals.</p><p>After the above treatment there will be no occurrence of f ( x ) &lt; 0 anymore. Therefore, the monotonicity of g ( x ) is satisfied unconditionally, see <xref ref-type="fig" rid="fig9">Figure 9</xref>. Not to mention that no unnecessary oscillations are introduced with this local treatment.</p></sec></sec><sec id="s3"><title>3. An Unconditional Monotone C<sup>2</sup> Spline</title><sec id="s3_1"><title>3.1. Constructing the Proposed Method</title><p>We have obtained a Hermite cubic spline in previous sections. The spline is non-negative, differentiable, and the area under it bounded by the walls of intervals and the x-axis exactly matches a specified area for each interval. Therefore, the integration of f ( x ) provides a monotone interpolation of the data set { x i , s i } , i = 0 , 1 , 2 , ⋯ , N with an excellent quality. We have picked a general parametric form of x = x ( u ) and y = y ( u ) in Equation (5). In practice one can simply pick that</p><p>u = x − x i Δ x i ,     f ( x ) = y ( u ) ,</p><p>for interval “i”. All the previous discussions would still hold. This means we have an unconditionally monotone interpolation that is only quartic. It is an integral of the Hermit-cubic splines. Its order is lower than some of the existing monotone interpolation methods. Although we have split each interval to two, thus increased the number of knots. Nevertheless, since our analysis is done in the slope space for a cubic spline, the proposed method may be easier to handle than other monotone interpolation methods. The new monotone interpolation can be explicitly expressed as the follows</p><p>g ( x ) = s i + ( x i + 1 2 − x i ) ∫ 0 u f ( u ) d u = s i + ( x i + 1 2 − x i ) ( y i G 00 ( u ) + y i + 1 2 G 01 ( u ) + q i G 10 ( u ) + q i + 1 2 G 11 ( u ) ) , (14)</p><p>for the left subinterval of the original interval “i” with u ≡ ( x − x i ) / ( x i + 1 2 − x i ) .</p><p>The quartic functions G i j ( u ) are integrations of the Hermite base functions H i j ( u ) and</p><p>G 00 ( u ) = u ( 1 − u 2 − u 3 2 ) ,     G 01 ( u ) = u 3 ( 1 − u 2 ) ,</p><p>G 10 ( u ) = u 2 12 ( 3 u 2 − 8 u + 6 ) ,     G 11 ( u ) = u 3 12 ( 3 u − 4 ) .</p><p>Let us define that</p><p>s i + 1 2 = g ( x i + 1 2 ) = s i + 1 2 ( x i + 1 2 − x i ) ( y i + y i + 1 + 1 6 ( q i + q i + 1 2 ) ) .</p><p>Then for the right subinterval ( x i + 1 2 , x i + 1 ) , we have</p><p>g ( x ) = s i + 1 2 + ( x i + 1 − x i + 1 2 ) ∫ 0 u f ( u ) d u = s i + 1 2 + ( x i + 1 − x i + 1 2 ) ( y i + 1 2 G 00 ( u ) + y i + 1 G 01 ( u ) + q i + 1 2 G 10 ( u ) + q i + 1 G 11 ( u ) ) , (15)</p><p>with u = ( x − x i + 1 2 ) / ( x i + 1 − x i + 1 2 ) this time. The slope terms are defined as</p><p>q i = 1 2 ( y i + 1 2 − y i − 1 2 ) ,     q i + 1 2 = 1 2 ( y i + 1 − y i ) ,     q i + 1 = 1 2 ( y i + 3 2 − y i + 1 2 ) ,</p><p>if interval “i” contains no negativeness. In the case of a possible isolated negativeness the corresponding q terms are taken to zeros. Because the y (thus q) terms in the above equations are obtained with area matching, Equations (1), (2), and (3) are all satisfied. Because f ( x ) is differentiable, g ( x ) is an unconditionally monotone C<sup>2</sup> quartic spline. Besides all the above, the proposed method does not have nonphysical oscillations on its derivative for we have explicit slope control with a Hermite cubic spline. This is a desirable feature. It is possible to further refine the solution by minimize the curvature (say) of f ( x ) to adjust the level of the control points for minimal variation in slope. However, we are confident that the proposed solution is of third order accuracy with a quadratic interface reconstruction. Therefore, the control points are almost right on the ideal solution assuming which exists. Then, a further refinement is hardly necessary for a practical purpose.</p></sec><sec id="s3_2"><title>3.2. In Two-Dimensions</title><p>Consider a set of data triplets { x i , y j , s i , j } given for i = 1 , 2 , ⋯ , ( I − 1 ) , I and j = 1 , 2 , ⋯ , ( J − 1 ) , J with the properties x i + 1 &gt; x i , y j + 1 &gt; y j , and s ( i + 1 ) , j &gt; s i , j , s i , ( j + 1 ) &gt; s i , j for an arbitrary pair of integers i, j in the range. Can one construct a polynomial surface S ( x , y ) that passes every data point (i.e. S ( x i , y j ) = s i , j for all feasible integer pair ( i , j ) ), and has positive spatial derivatives</p><p>f ( x , y ) ≡ ∂ S ( x , y ) ∂ x &gt; 0 ,     g ( x , y ) ≡ ∂ S ( x , y ) ∂ y &gt; 0 ,</p><p>with no oscillation for both f and g ?</p><p>If the given dataset is also consistent with a sufficient condition for data monotonicity</p><p>v i , j ≡ s i + 1 , j + 1 + s i , j − s i , j + 1 − s i + 1 , j &gt; 0 , (16)</p><p>for all valid i and j, then, a method for interface-reconstruction in three-dimensions using volume conservation may be applied to constructing a two-dimensional monotone spline that is at least twice differentiable, with no oscillation on the first derivatives of S ( x , y ) .</p><p>Without loss of generality, we assume s i , j &gt; 0 and modify a given data set satisfying Equation (16), by adding a layer of phantom data points by simply choosing x 0 &lt; x 1 , y 0 &lt; y 1 , and assigning s i , 0 = 0 , s 0 , j = 0 for all 0 ≤ i ≤ I , 0 ≤ j ≤ J . The monotone feature that s ( i + 1 ) , j &gt; s i , j , s i , ( j + 1 ) &gt; s i , j can be derived from Equation (16) using the boundary values.</p><p>The interface reconstruction is done in the ( ∂ 2 s / ∂ x ∂ y ) space. The “fluid volume” confined in each rectangular cell x i ≤ x ≤ x i + 1 , y j ≤ y ≤ y j + 1 , is defined by Equation (16), which is a difference expression for the cross-derivative at the cell center. Because slope estimates can be computed with certain difference schemes, there are enough data to support the definition of a local quadratic polynomial (or some other algebraic expression) that bounds v i , j exactly in this cell.</p><p>The average of the intersections between the straight line x = x i , y = y i and the reconstructed local interface expressions in the surrounding cells can be used as a fixed control point. The control points above the middle point of each edge of a given cell can be set similarly (see <xref ref-type="fig" rid="fig1">Figure 1</xref>0). A bicubic spline polynomial can be defined over all the control points and an exact volume match for all the cells can be performed to determine the heights of the control points at the center of cells. Solution of a sparse linear system is required because a volume integral under such a bicubic spline is a linear combination of the heights of neighbor control points above cell centers.</p><p>Finally, the monotone spline can be obtained with an integral of the bicubic spline V ( x , y ) described above</p><p>S ( x , y ) = ∫ x 0 x ∫ y 0 y V ( x &#175; , y &#175; ) d x &#175; d y &#175; .</p><p>Because V = ( ∂ 2 S / ∂ x ∂ y ) &gt; 0 holds everywhere by construction and on the boundaries x = x 0 and y = y 0 the first derivatives of S are nonnegative, as the spatial integrals of ( ∂ 2 S / ∂ x ∂ y ) , ∂ S / ∂ x &gt; 0 and ∂ S / ∂ y &gt; 0 must hold everywhere inside the computational domain. Thus the spline is monotone. Because explicit slope control is provided for V ( x , y ) with setting the control points by volume conservation, there is no oscillation on the derivatives of S ( x , y ) for ( ∂ 2 S / ∂ x ∂ y ) has no oscillation. In addition, the spatial slopes is continuous for a bicubic polynomial V ( x , y ) ≡ ( ∂ 2 S / ∂ x ∂ y ) , S ( x , y ) is then at least twice differentiable.</p></sec></sec><sec id="s4"><title>4. An Application: Arbitrary Rebinning of Statistical Data</title><p>A set of statistical data pair { x i , s i } , ( i = 0 , 1 , 2 , ⋯ , N − 1 , N ) is given. Which can be considered as density of radioactive particle counts vs. energy, as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>1. It is desired to bin the data in such a way that the number of counts is even in each bin. We are going to demonstrate how to solve this problem with constructing the proposed monotone interpolation.</p><sec id="s4_1"><title>4.1. Slope Estimate</title><p>At each internal knot x i , we find its neighbor knots x i − 1 and x i + 1 and fit a quadratic polynomial</p><p>S ( x ) = α i ( x − x i ) 2 + β i ( x − x i ) + γ i</p><p>that passes the three data points and the solution is explicit that</p><p>α i = h i − h i − 1 x i + 1 − x i − 1 ,   β i = ( h i ( Δ x i − 1 ) + h i − 1 ( Δ x i ) ) ,   γ i = s i .</p><p>For an estimate of slopes we can differentiate S ( x ) and take</p><p>f ( x i ) ≈ S ′ ( x i ) = β i ,     f ′ ( x i ) ≈ S ″ ( x i ) = 2 α i .</p></sec><sec id="s4_2"><title>4.2. A Quadratic Polynomial Area-Match to Estimate Mid-Interval Control Points</title><p>For each interval [ x i , x i + 1 ] , we fit a quadratic polynomial</p><p>F ( x ) = a ( x − x i + 1 2 ) 2 + b ( x − x i + 1 2 ) + ( c − h i )</p><p>with F ′ ( x i ) = 2 α i , F ′ ( x i + 1 ) = 2 α i + 1 the slope estimates described above. One</p><p>finds that</p><p>a = ( S ″ ( x i + 1 ) − S ″ ( x i ) ) / ( 2 Δ x i ) ,   b = ( S ″ ( x i ) + S ″ ( x i + 1 ) ) / 2 ,   c = − a ( Δ x i ) 2 12 .</p><p>The value of c = F ( x i + 1 2 ) provides the estimate of the height of the mid interval control point C 2 i + 1 . The quadratic area fitting function F ( x ) described</p><p>above has the 3<sup>rd</sup> order spatial accuracy and provides the initial heights of the mid interval control points.</p></sec><sec id="s4_3"><title>4.3. A Hermit Spline to Determine Control Points above Knots</title><p>A Hermit cubic spline passing the set of mid interval area matching points obtained above intersects the line x = x i and the intersection is taken as the position of control point C 2 i . In the unlikely case that this control point is below the x-axis, for positivity, we would lift it to ( x i , 0 ) thus move this control-point closer to the true solution which is by definition above the x-axis. These control points are not to be moved.</p></sec><sec id="s4_4"><title>4.4. Adjusting Mid-Interval Control Points</title><p>At this step, each original interval is broken to two subintervals of equal lengths. Each interval [ x i , x i + 1 ] corresponds to a mid-interval control point</p><p>C 2 i + 1 = ( x i + 1 2 , y i + 1 2 ) . y i + 1 2 is computed by solving a tri-diagonal linear system</p><p>defined by the area-matching Equation (13) for all i’s.</p></sec><sec id="s4_5"><title>4.5. Constructing the Proposed Monotone Spline</title><p>All the control points are now determined. They define a unique Hermit spline curve f ( x ) that passes all the control points, has a continuous derivative crossing the bin-walls, and matches the counts in each bin. We are able to integrate f ( x ) to construct the monotone interpolation function g ( x ) as described with Equation (14), Equation (15).</p></sec><sec id="s4_6"><title>4.6. Solving for Evenly Dividing Counts in Each New Bins</title><p>Because g ( x ) is monotone, one is able to evenly divide the vertical axis in the ( g ( x ) , x ) space between ( g ( x 0 ) , g ( x N ) ) to M intervals. Let the new accumulated bin counts be</p><p>S j = s 0 + j ( s N − s 0 ) M ,   ( j = 0 , 1 , 2 , ⋯ , M ) .</p><p>Then one solves for each j that g ( x j ) = S j for the new bin-system. Because the derivative g ′ ( x ) = f ( x ) is available at any point in the domain, a Newton- Raphson method</p><p>x j k + 1 = x j k − ( g ( x k ) − S j ) / f ( x k ) ,</p><p>will generate the solution quickly for g ( x ) is monotone. The first guess can be picked with a search to find the i<sup>th</sup> bin that contains the solution, i.e.</p><p>s i &lt; S j &lt; s i + 1 then, simply taken to x j 0 = x i + 1 2 .</p><p>A solution in the case of N = 28 and M = 40 is shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>2. One should easily understand the feature of no oscillation with f ( x ) is necessary for a sensible solution of rebinning the statistical data.</p></sec></sec><sec id="s5"><title>5. Conclusion</title><p>A one dimensional monotone C<sup>2</sup> quartic interpolation method is proposed. The original problem is reduced to a volume matching problem in the slope space to locate a set of control points on the solution curve. A quadratic fitting in each interval is employed to first approximately locate the control points with area matching. The solution of a tri-diagonal linear system is employed to relocate the control points above the middle of each interval to exactly matching the areas under a Hermit-cubic spline curve while fixing the control points above the original knots. The integration of the solution in the slope-space provides the desired unconditional monotone C<sup>2</sup> interpolation. The proposed method has the feature of being of lower order (quartic) and with no undesired oscillation in the slope space. An application to the practical problem of rebinning a set of nonnegative statistical data shows the proposed method is effective in one-dimension. The proposed method may be extended to two-dimensions in a similar fashion with a higher smoothness for data sets that satisfy an extra constraint.</p></sec><sec id="s6"><title>Acknowledgements</title><p>This work is performed under the auspices of the US Department of Energy by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344.</p><p>The authors would like to express appreciation to Simon Labov and Chad Noble of Lawrence Livermore National Laboratory for their encouragement and support.</p></sec><sec id="s7"><title>Cite this paper</title><p>Yao, J. and Nelson, K.E. (2018) An Unconditionally Monotone C<sup>2</sup> Quartic Spline Method with Nonoscillation Derivatives. Advances in Pure Mathematics, 8, 25-40. https://doi.org/10.4236/apm.2018.81003</p></sec></body><back><ref-list><title>References</title><ref id="scirp.81915-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Fritsch, F.N. and Carlson, R.E. (1980) Monotone Piecewise Cubic Interpolation. SIAM Journal on Numerical Analysis, 17, 238-246. https://doi.org/10.1137/0717021</mixed-citation></ref><ref id="scirp.81915-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Fritsch, F.N. and Butland, J. (1984) A Method for Constructing Local Monotone Piecewise Cubic Interpolants. SIAM Journal on Scientific and Statistical Computing, 5, 300-304. http://epubs.siam.org/doi/abs/10.1137/0905021</mixed-citation></ref><ref id="scirp.81915-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Carlson, R.E. and Fritsch, F.N. (1985) Monotone Piecewise Bicubic Interpolation. SIAM Journal on Numerical Analysis, 22, 386-400. https://doi.org/10.1137/0722023</mixed-citation></ref><ref id="scirp.81915-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Steffen, M. (1990) A Simple Method for Monotonic Interpolation in One Dimension. Astronomy and Astrophysics, 239, 443.</mixed-citation></ref><ref id="scirp.81915-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">He&amp;#223;, W. and Schmidt, J.W. (1994) Positive Quartic, Monotone Quintic C2-Spline Interpolation in One and Two Dimensions. Journal of Computational and Applied Mathematics, 55, 51-67. https://doi.org/10.1016/0377-0427(94)90184-8</mixed-citation></ref><ref id="scirp.81915-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Ling, N.S., Kong, V.P. and Ong, B.H. (2009) A Class of Bézier-Like Splines in Smooth Monotone Interpolation. Malaysian Journal of Mathematical Sciences, 3, 203-226.</mixed-citation></ref><ref id="scirp.81915-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Dougherty, R.L., Edelman, A. and Hyman, J.M. (1989) Nonnegativity-, Monotonicity-, or Convexity-Preserving Cubic and Quintic Hermite Interpolation. Mathematics of Computation (United States), 52, 471-494. https://doi.org/10.1090/S0025-5718-1989-0962209-1</mixed-citation></ref><ref id="scirp.81915-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Jochen, W., Schmidt, J.W. and He&amp;#223;, W. (1995) An Always Successful Method in Univariate Convex C2 Interpolation. Numerische Mathematik, 71, 237-252. https://doi.org/10.1007/s002110050143</mixed-citation></ref><ref id="scirp.81915-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Sablonniere, P. and Mani, C. (1997) Monotone Interpolation of Order 3 by C2 Cubic Splines. IMA Journal of Numerical Analysis, 17, 305-320. https://doi.org/10.1093/imanum/17.2.305</mixed-citation></ref><ref id="scirp.81915-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Sablonniere, P. and Merrien, J.-L. (2003) Monotone and Convex C1 Hermite Interpolants Generated by a Subdivision Scheme. Constructive Approximation, 19, 279-298. https://doi.org/10.1007/s00365-002-0512-3</mixed-citation></ref><ref id="scirp.81915-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Hyman, J.M. (1983) Accurate Monotonicity Preserving Cubic Interpolation. SIAM Journal on Scientific and Statistical Computing, 4, 645-654. https://doi.org/10.1137/0904045</mixed-citation></ref><ref id="scirp.81915-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">Wolberg, G. and Alfy, I. (1999) Monotonic Cubic Spline Interpolation. Proceeding CGI’99 Proceedings of the International Conference on Computer Graphics, Washington DC, 188.</mixed-citation></ref><ref id="scirp.81915-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Han, H. and Guo, X. (2018) Cubic Hermite Interpolation with Minimal Derivative Oscillation. Journal of Computational and Applied Mathematics, 331, 82-87. https://doi.org/10.1016/j.cam.2017.09.049</mixed-citation></ref><ref id="scirp.81915-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Wolberg, G. and Alfy, I. (2002) An Energy-Minimization Framework for Monotonic Cubic Spline Interpolation. Journal of Computational and Applied Mathematics, 143, 145-188. https://doi.org/10.1016/S0377-0427(01)00506-4</mixed-citation></ref></ref-list></back></article>