MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: restricting interpolating functions to be positive

  • To: mathgroup at smc.vnet.net
  • Subject: [mg106428] Re: restricting interpolating functions to be positive
  • From: dh <dh at metrohm.com>
  • Date: Tue, 12 Jan 2010 04:49:27 -0500 (EST)
  • References: <higdjs$kfi$1@smc.vnet.net>


Hi,

Interpolation by default fits cubic polynomials. These tend to 

over/undershoot the points given. If you can live with linear 

interpolation, you may specify InterpolationOrder->0. Then the points 

are simply connected by straight lines.

Daniel



dantimatter wrote:

> Hi All,

> 

> I would like to construct an interpolation that can only take on

> positive values.  The data that I'm trying to interpolate is all

> positive, but for some reason the Interpolation[] function 'wants' to

> connect the dots by dipping below zero.  Is there a way to force

> positivity?  Or should I simply adjust the InterpolationOrder until it

> works?

> 

> Thanks,

> Dan

> 




  • Prev by Date: Program Generation of Mathematica Code
  • Next by Date: Re: restricting interpolating functions to be positive
  • Previous by thread: Re: restricting interpolating functions to be positive
  • Next by thread: Re: restricting interpolating functions to be positive