IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 659


Ignore:
Timestamp:
May 12, 2004, 8:43:42 PM (22 years ago)
Author:
gusciora
Message:

I removed the docs target from the install target, because it was driving me
crazy. I fixed some things with psStats.c. I produced the first working
test case for psStats.c

This version of the code only builds with the following:

make
make install
make
make install

Location:
trunk/psLib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/Makefile

    r657 r659  
    33##  Makefile:  psLib
    44##
    5 ##  $Revision: 1.10 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-05-13 06:06:33 $
     5##  $Revision: 1.11 $  $Name: not supported by cvs2svn $
     6##  $Date: 2004-05-13 06:43:42 $
    77##
    88##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    140140# the installation
    141141
    142 install: installdirs $(INSTALLTARGETS) docs
     142install: installdirs $(INSTALLTARGETS)
    143143        install *.h $(includedir)
    144144        install $(TARGET_STATIC) $(libexecdir)
  • trunk/psLib/src/dataManip/psStats.c

    r657 r659  
    183183    } else {
    184184        for (i=0;i<myVector->n;i++) {
    185             mean+= maskVector->vec.i[i];
    186         }
    187     }
     185            mean+= myVector->vec.f[i];
     186        }
     187    }
     188    mean/= myVector->n;
    188189    return(mean);
    189190}
  • trunk/psLib/src/math/psStats.c

    r657 r659  
    183183    } else {
    184184        for (i=0;i<myVector->n;i++) {
    185             mean+= maskVector->vec.i[i];
    186         }
    187     }
     185            mean+= myVector->vec.f[i];
     186        }
     187    }
     188    mean/= myVector->n;
    188189    return(mean);
    189190}
  • trunk/psLib/test/dataManip/tst_psStats00.c

    r654 r659  
    2626    dummyFloatType.dimen = PS_DIMEN_VECTOR;
    2727    myVector = psVectorAlloc(dummyFloatType, N);
     28    myVector->n = N;
    2829
    2930    mean = 0.0;
     
    3738    myStats2 = psArrayStats(myVector, NULL, 0, myStats);
    3839    mean = myStats2->sampleMean;
    39     printf("HMMMM mean is %f\n", mean);
    4040
    4141    if (mean == realMean) {
Note: See TracChangeset for help on using the changeset viewer.