MathGroup Archive 1996

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

Search the Archive

Re: Fitting data with Splines

  • To: mathgroup at smc.vnet.net
  • Subject: [mg3225] Re: Fitting data with Splines
  • From: fostad at marin.unit.no (Anders Fostad)
  • Date: Mon, 19 Feb 1996 02:58:55 -0500
  • Organization: Norwegian University of Science and Technology, Trondheim, Norway
  • Sender: owner-wri-mathgroup at wolfram.com

How about something like this (I don't have the Mathematica handbook
in front of me, so I can't tell the exact syntax, but it may help you
on the way):

getysplinevalue[spline_List,x_] = Module[{index,y},
					 index=Position[spline,x];
					 y=spline[x];
					 y
					]

Well, at least the intrinsic function Position seems to be the key.

Anders Fostad. 	
									

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Re: How to change ( the blue ) frame color on X front-end ?
  • Next by Date: Should I buy 2.2.4?
  • Previous by thread: Re: Fitting data with Splines
  • Next by thread: Re: Fitting data with Splines