Changeset 4050 for trunk/psLib/src/dataIO/psLookupTable.h
- Timestamp:
- May 31, 2005, 11:46:56 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/dataIO/psLookupTable.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/dataIO/psLookupTable.h
r3684 r4050 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 4-08 17:58:57$9 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-05-31 21:46:56 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 28 28 typedef struct 29 29 { 30 const char *fileName; ///< Name of file with table 31 psU64 numRows; ///< Number of table rows 32 psU64 numCols; ///< Number of table columns 30 const char *filename; ///< Name of file with table 31 const char *format; ///< scanf-like format string for file 32 unsigned int indexCol; ///< Column of the index vector (starting at zero) 33 psVector *index; ///< Vector of independent index values 34 psArray *values; ///< Array of dependent table values corresponding to index values 33 35 psF64 validFrom; ///< Lower bound for rable read 34 36 psF64 validTo; ///< Upper bound for table read 35 psVector *index; ///< Vector of independent index values36 psArray *values; ///< Array of dependent table values corresponding to index values37 37 } 38 38 psLookupTable; … … 69 69 psLookupTable* psLookupTableAlloc( 70 70 const char *fileName, ///< Name of file to read 71 psF64 validFrom, ///< Lower bound for rable read 72 psF64 validTo ///< Upper bound for table read 71 const char *format, ///< scanf-like format string 72 int indexCol ///< Column of the index vector (starting at zero) 73 ); 74 75 /** Read vectors from file 76 * 77 * Read numeric vectors from ASCII text file 78 * 79 * @return psArray* New array of psVectors corresponding to the columns of the table 80 */ 81 psArray *psVectorsReadFromFile( 82 const char* filename, ///< File to be read 83 const char* format ///< scanf-like format string 84 ); 85 86 /** Import arrays of vectors into a table 87 * 88 * Import array of vectors read from text file into a table structure 89 * 90 * @return psLookupTable* Lookup table structure with array vector data 91 */ 92 psLookupTable *psLookupTableImport( 93 psLookupTable *table, ///< Lookup table into which to import 94 const psArray *vectors, ///< Array of vectors 95 int indexCol ///< Index of the index vector in the array of vectors 73 96 ); 74 97 … … 77 100 * Reads a lookup table and fills corresponding psLookupTable struct. 78 101 * 79 * @return ps LookupTable* New psLookupTable struct.102 * @return psS32 Number of valid lines read 80 103 */ 81 ps LookupTable*psLookupTableRead(104 psS32 psLookupTableRead( 82 105 psLookupTable *table ///< Table to read 83 106 ); … … 91 114 */ 92 115 psF64 psLookupTableInterpolate( 93 psLookupTable *table,///< Table with data116 const psLookupTable *table, ///< Table with data 94 117 psF64 index, ///< Value to be interpolated 95 psU64 column, ///< Column in table to be interpolated 96 psLookupStatusType *status ///< Status of lookup 118 psS32 column ///< Column in table to be interpolated 97 119 ); 98 120 … … 106 128 psVector* psLookupTableInterpolateAll( 107 129 psLookupTable *table, ///< Table with data 108 psF64 index, ///< Value to be interpolated 109 psVector *stats ///< Vector of status for each lookup 130 psF64 index ///< Value to be interpolated 110 131 ); 111 132
Note:
See TracChangeset
for help on using the changeset viewer.
