/*
 * SUMMARY:      lookuptable.h - header file for LookupTable.c
 * USAGE:        Part of DHSVM
 *
 * AUTHOR:       Bart Nijssen
 * ORG:          University of Washington, Department of Civil Engineering
 * E-MAIL:       nijssen@u.washington.edu
 * ORIG-DATE:    Feb 25, 1997
 * LAST-MOD: Tue Feb 25 10:02:49 1997 by Bart Nijssen <nijssen@meter.ce.washington.edu>
 * DESCRIPTION:  header file for LookupTable.c
 * DESCRIP-END.
 */

#ifndef LOOKUP_TABLE_H
#define LOOKUP_TABLE_H

typedef struct {
  unsigned long Size;           /* Number of elements in lookup table */
  float Offset;                 /* Value of key of first entry in the table */
  float Delta;                  /* Interval between keys */
  float *Data;                  /* Pointer to array with entries */
} FLOATTABLE;

float FloatLookup(float x, FLOATTABLE *Table);
void InitFloatTable(unsigned long Size, float Offset, float Delta, 
                    float (*Function)(float), FLOATTABLE *Table);


#endif
