IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3283


Ignore:
Timestamp:
Feb 18, 2005, 9:42:48 AM (21 years ago)
Author:
evanalst
Message:

Updated interpolation test case for all values.

Location:
trunk/psLib/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/dataIO/tst_psLookupTable_01.c

    r3268 r3283  
    1212*  @author  Ross Harman, MHPCC
    1313*
    14 *  @version $Revision: 1.9 $  $Name: not supported by cvs2svn $
    15 *  @date  $Date: 2005-02-17 21:48:49 $
     14*  @version $Revision: 1.10 $  $Name: not supported by cvs2svn $
     15*  @date  $Date: 2005-02-18 19:42:48 $
    1616*
    1717*  Copyright 2004-5 Maui High Performance Computing Center, University of Hawaii
     
    466466    table1 = psLookupTableAlloc("table10.dat",0,20);
    467467    table1 = psLookupTableRead(table1);
    468     for(psS32 i = 0; i < table1->numRows-2; i++ ) {
     468    for(psS32 i = 0; i < table1->numRows-1; i++ ) {
    469469        out1 = psLookupTableInterpolate(table1, 5.25, i, &status);
    470470        if( fabs(out1-interpolVal1[i]) > errorTol_psF64) {
     
    473473        }
    474474    }
    475     for(psS32 i = 0; i < table1->numRows-2; i++ ) {
     475    for(psS32 i = 0; i < table1->numRows-1; i++ ) {
    476476        out1 = psLookupTableInterpolate(table1, 5.0, i, &status);
    477477        if( fabs(out1-interpolVal2[i]) > errorTol_psF64) {
  • trunk/psLib/test/fileUtils/tst_psLookupTable_01.c

    r3268 r3283  
    1212*  @author  Ross Harman, MHPCC
    1313*
    14 *  @version $Revision: 1.9 $  $Name: not supported by cvs2svn $
    15 *  @date  $Date: 2005-02-17 21:48:49 $
     14*  @version $Revision: 1.10 $  $Name: not supported by cvs2svn $
     15*  @date  $Date: 2005-02-18 19:42:48 $
    1616*
    1717*  Copyright 2004-5 Maui High Performance Computing Center, University of Hawaii
     
    466466    table1 = psLookupTableAlloc("table10.dat",0,20);
    467467    table1 = psLookupTableRead(table1);
    468     for(psS32 i = 0; i < table1->numRows-2; i++ ) {
     468    for(psS32 i = 0; i < table1->numRows-1; i++ ) {
    469469        out1 = psLookupTableInterpolate(table1, 5.25, i, &status);
    470470        if( fabs(out1-interpolVal1[i]) > errorTol_psF64) {
     
    473473        }
    474474    }
    475     for(psS32 i = 0; i < table1->numRows-2; i++ ) {
     475    for(psS32 i = 0; i < table1->numRows-1; i++ ) {
    476476        out1 = psLookupTableInterpolate(table1, 5.0, i, &status);
    477477        if( fabs(out1-interpolVal2[i]) > errorTol_psF64) {
Note: See TracChangeset for help on using the changeset viewer.