gibuu is hosted by Hepforge, IPPP Durham
GiBUU

/tabulation [ Modules ]

[ Top ] [ Modules ]

NAME

module tabulation

PURPOSE

Implements multi-dimensional tabulation with constant grid size, single precision (4 byte) and linear interpolation. Tabulation routines for 1-4 dimensions are available.

tabulation/interpolate4 [ Functions ]

[ Top ] [ tabulation ] [ Functions ]

NAME

function interpolate4(X,min,max,delta,Table) result(interValue)

PURPOSE

Implements 4-dimensional linear interpolations for constant grid distances. Assume that f(x)=y where x 4-dim and y 1-dim. Given a table of function values f_{m,n,o,p}=f(x_1=min(1)+m*delta(1),x_2=min(2)+n*delta(2),x_3=...,x_4=...), this function estimates the value of f(X) where X is not a grid-point.

INPUTS

• real, dimension(:,:),intent(in) :: table -- Table of function values f_{m,n,o,p}
• real, dimension(1:4),intent(in) :: min,max,delta -- Minimum, maximum and step size of the underlying x-grid
• real, dimension(1:4),intent(in) :: X -- X-Value at which we want to know f(X)

OUTPUT

• real :: interValue

NOTES

If the point x lies in one of its dimensions outside the grid, then we take either the lowest or the highest grid point of this dimension to evaluate the interpolated value.