Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Remove points from InterpolatingFunction

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109800] Re: Remove points from InterpolatingFunction
  • From: dh <dh at metrohm.com>
  • Date: Tue, 18 May 2010 02:13:44 -0400 (EDT)
  • References: <hsr87v$bc1$1@smc.vnet.net>

Hi Frank,
I assume you do not have the original points, otherwise you would simply 
delete some points and make a new function from the rest.
Well, we may get the points from the function itself. E.g a one 
dimensional case:
d = RandomReal[{-1, 1}, {5}];
f = Interpolation[d]
We may get the x and y values from:
f[[3,1]]
f[[4,3]]
Having the points, delete the bad ones and use Interpolation to make a 
new one.
Daniel

Am 17.05.2010 13:10, schrieb Frank Breitling:
> Hello,
>
> I have an interpolating function with a small interval of low accuracy.
> Therefore I would like to remove all points in this interval.
> I already tried to overwrite the interval using Piecewise and Condition
> (/;). However a so defined function causes problems in my later
> calculations due to its higher complexity.
> Therefore I would like to keep the original InterpolatingFuction and
> only remove the problematic points.
>
> How can I do this?
>
> Kind regards
>
> Frank
>


-- 

Daniel Huber
Metrohm Ltd.
Oberdorfstr. 68
CH-9100 Herisau
Tel. +41 71 353 8585, Fax +41 71 353 8907
E-Mail:<mailto:dh at metrohm.com>
Internet:<http://www.metrohm.com>



  • Prev by Date: Re: Random number generation( b/w two limits) with a gaussian
  • Next by Date: Re: Latex, Mathematica, and journals
  • Previous by thread: Remove points from InterpolatingFunction
  • Next by thread: Re: Remove points from InterpolatingFunction