Function Repository Resource:

InterpolatingFunctionData

Source Notebook

Extract data from an InterpolatingFunction object

Contributed by: Wolfram Staff

ResourceFunction["InterpolatingFunctionData"][ifun,property]

gives the value of the property of the InterpolatingFunction object ifun.

ResourceFunction["InterpolatingFunctionData"][ifun,(prop1,prop2,}]

gives the values of propi.

ResourceFunction["InterpolatingFunctionData"][ifun]

gives an association of all the known properties of ifun.

Details and Options

ResourceFunction["InterpolatingFunctionData"] provides an interface to the functions in the package InterpolatingFunctionAnatomy.
In ResourceFunction["InterpolatingFunctionData"][ifun,properties], the following properties can be given:
"Domain"a list of the domains of each dimension of ifun
"Coordinates"coordinates at which the interpolating function data is specified
"Grid"grid of points at which data is specified
"ValuesOnGrid"values that would be returned by evaluating ifun at each of its grid points
"InterpolationOrder"interpolation order for each dimension of ifun
"DerivativeOrder"order of the derivative of the base function
ResourceFunction["InterpolatingFunctionData"][ifun] is equivalent to ResourceFunction["InterpolatingFunctionData"][ifun,All].

Examples

Basic Examples (2) 

Construct an InterpolatingFunction object:

In[1]:=
ifun = Interpolation[{1, 2, 3, 5, 8, 5}]
Out[1]=

Use InterpolatingFunctionData to obtain one or more of its properties:

In[2]:=
ResourceFunction["InterpolatingFunctionData"][ifun, "Domain"]
Out[2]=
In[3]:=
ResourceFunction[
 "InterpolatingFunctionData"][ifun, {"Grid", "ValuesOnGrid"}]
Out[3]=
In[4]:=
ResourceFunction["InterpolatingFunctionData"][ifun]
Out[4]=

Scope (6) 

Obtain the domain of an InterpolatingFunction object:

In[5]:=
ResourceFunction["InterpolatingFunctionData"][
 Interpolation[{1, 2, 3, 5, 8, 5}], "Domain"]
Out[5]=

Obtain the coordinates at which the interpolating function data is specified:

In[6]:=
ResourceFunction["InterpolatingFunctionData"][
 Interpolation[{1, 2, 3, 5, 8, 5}], "Coordinates"]
Out[6]=

Obtain the grid of points at which data is specified:

In[7]:=
ResourceFunction["InterpolatingFunctionData"][
 Interpolation[{1, 2, 3, 5, 8, 5}], "Grid"]
Out[7]=

Obtain the values that would be returned by evaluating the interpolating function at each of its grid points:

In[8]:=
ResourceFunction["InterpolatingFunctionData"][
 Interpolation[{1, 2, 3, 5, 8, 5}], "ValuesOnGrid"]
Out[8]=

Obtain the interpolation order for each of the dimensions:

In[9]:=
ResourceFunction["InterpolatingFunctionData"][
 Interpolation[{1, 2, 3, 5, 8, 5}], "InterpolationOrder"]
Out[9]=

Obtain the order of the derivative of the base function:

In[10]:=
ResourceFunction["InterpolatingFunctionData"][
 Interpolation[{1, 2, 3, 5, 8, 5}], "DerivativeOrder"]
Out[10]=

Version History

  • 1.0.0 – 24 February 2020

Related Resources

License Information