next up previous contents
Next: Function: free_cubic Up: GRASP Routines: Template Bank Previous: Function: read_cubic   Contents


Function: get_cubic

int get_cubic(float m1, float m2, struct cubic_grid grid, float *coef);
This routine computes the coefficients of a cubic fit to the match function at a specified point in parameter space, by linear interpolation of precomputed coefficients on a grid in parameter space. It returns 0 if successfully executed, or 1 if the point (m1,m2) lies outside of the grid. In the latter case, get_cubic() will compute extrapolated coefficients, but these are unreliable.

The arguments are:

m1: Input. One of the binary mass coordinates of the requested point in parameter space.

m2: Input. The other binary mass coordinates of the requested point in parameter space.

grid: Input. The data structure containing the precomputed coefficients and the information required to retrieve them.

coef: Output. The array coef[0..9] is filled with the interpolated coefficients.

Author: Teviet Creighton, teviet@tapir.caltech.edu



Bruce Allen 2000-11-19