IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 8, 2025, 4:42:12 PM (12 months ago)
Author:
eugene
Message:

remove old deprecated tests, add some new ones

Location:
trunk/psLib/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test

    • Property svn:ignore
      •  

        old new  
        66*.da
        77gmon.out
         8test.00.jpg
         9test.01.jpg
         10test.02.jpg
         11test.03.jpg
         12test.04.jpg
         13test.05.jpg
         14test.06.jpg
         15test.07.jpg
         16test.08.jpg
         17test.09.jpg
         18test.10.jpg
         19test.11.jpg
         20test.12.jpg
         21test.im.fits
         22test.mk.fits
         23test.sm1.fits
         24test.sm2.fits
         25test.sm3.fits
         26test.sm4.fits
         27tmpImages
         28tst_psTrace02_OUT
  • trunk/psLib/test/math

    • Property svn:ignore
      •  

        old new  
        5353tap_psSpline1D
        5454tap_psPolynomialMD
         55tap_psMinimizeLMM
         56tap_psMinimizeLMM_Alt
         57tap_psMinimizeLMM_Trail
         58tap_psPolyFit_IRLS_1D
         59tap_psPolyFit_IRLS_2D
         60tap_psPolynomialMD_sampleDark
         61test-suite.log
  • trunk/psLib/test/math/tap_psMinimizeLMM.c

    r23259 r42822  
    5353
    5454#define NUM_ITER 10
    55 #define TOL  20.0
     55#define MIN_TOL  20.0
     56#define MAX_TOL  40.0
    5657psS32 main(psS32 argc, char* argv[])
    5758{
     
    6465    {
    6566        psMemId id = psMemGetId();
    66         psMinimization *tmp = psMinimizationAlloc(NUM_ITER, TOL);
     67        psMinimization *tmp = psMinimizationAlloc(NUM_ITER, MIN_TOL, MAX_TOL);
    6768        ok(tmp != NULL, "psMinimizationAlloc() returned non-NULL");
    6869        skip_start(tmp == NULL, 5, "Skipping tests because psMinimizationAlloc() failed");
    6970        ok(tmp->maxIter == NUM_ITER, "psMinimizationAlloc() properly set ->maxIter");
    70         ok(tmp->tol == TOL, "psMinimizationAlloc() properly set ->tol");
     71        ok(tmp->minTol == MIN_TOL, "psMinimizationAlloc() properly set ->tol");
     72        ok(tmp->maxTol == MAX_TOL, "psMinimizationAlloc() properly set ->tol");
    7173        ok(tmp->value == 0.0, "psMinimizationAlloc() properly set ->value");
    7274        ok(tmp->iter == 0, "psMinimizationAlloc() properly set ->iter (%d)", tmp->iter);
     
    9698        psMemId id = psMemGetId();
    9799        psRandom *rng = psRandomAllocSpecific(PS_RANDOM_TAUS, 1); // Random number generator; using known seed
    98         psMinimization *min = psMinimizationAlloc(NUM_ITERATIONS, ERR_TOL);
     100        psMinimization *min = psMinimizationAlloc(NUM_ITERATIONS, ERR_TOL, 100);
    99101        psArray *ordinates = psArrayAlloc(NUM_DATA_POINTS);
    100102        psVector *coordinates = psVectorAlloc(NUM_DATA_POINTS, PS_TYPE_F32);
     
    204206        psMemId id = psMemGetId();
    205207        psRandom *rng = psRandomAllocSpecific(PS_RANDOM_TAUS, 1); // Random number generator; using known seed
    206         psMinimization *min = psMinimizationAlloc(NUM_ITERATIONS, ERR_TOL);
     208        psMinimization *min = psMinimizationAlloc(NUM_ITERATIONS, ERR_TOL, 100);
    207209        psArray *ordinates = psArrayAlloc(NUM_DATA_POINTS);
    208210        psVector *coordinates = psVectorAlloc(NUM_DATA_POINTS, PS_TYPE_F32);
Note: See TracChangeset for help on using the changeset viewer.