IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 28, 2005, 10:17:52 AM (21 years ago)
Author:
drobbin
Message:

updated files in accordance with requested revisions in apidelta-report-cycle6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psStats.c

    r4392 r4409  
    1414 *      stats->binsize
    1515 *
    16  *  @version $Revision: 1.135 $ $Name: not supported by cvs2svn $
    17  *  @date $Date: 2005-06-25 02:02:05 $
     16 *  @version $Revision: 1.136 $ $Name: not supported by cvs2svn $
     17 *  @date $Date: 2005-06-28 20:17:52 $
    1818 *
    1919 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    19871987 *****************************************************************************/
    19881988psHistogram* psVectorHistogram(psHistogram* out,
    1989                                const psVector* in,
     1989                               const psVector* values,
    19901990                               const psVector* errors,
    19911991                               const psVector* mask,
    1992                                psU32 maskVal)
     1992                               psMaskType maskVal)
    19931993{
    19941994    PS_ASSERT_PTR_NON_NULL(out, NULL);
     
    19991999    PS_ASSERT_VECTOR_TYPE(out->nums, PS_TYPE_F32, NULL);
    20002000    PS_ASSERT_INT_NONNEGATIVE(out->nums->n, NULL);
    2001     PS_ASSERT_VECTOR_NON_NULL(in, out);
     2001    PS_ASSERT_VECTOR_NON_NULL(values, out);
    20022002    if (mask != NULL) {
    2003         PS_ASSERT_VECTORS_SIZE_EQUAL(in, mask, NULL);
     2003        PS_ASSERT_VECTORS_SIZE_EQUAL(values, mask, NULL);
    20042004        PS_ASSERT_VECTOR_TYPE(mask, PS_TYPE_U8, NULL);
    20052005    }
    20062006    if (errors != NULL) {
    2007         PS_ASSERT_VECTORS_SIZE_EQUAL(in, errors, NULL);
    2008         PS_ASSERT_VECTOR_TYPE(errors, in->type.type, NULL);
     2007        PS_ASSERT_VECTORS_SIZE_EQUAL(values, errors, NULL);
     2008        PS_ASSERT_VECTOR_TYPE(errors, values->type.type, NULL);
    20092009    }
    20102010
     
    20212021
    20222022    // Convert input and errors vectors to F32 if necessary.
    2023     inF32 = p_psConvertToF32((psVector *) in);
     2023    inF32 = p_psConvertToF32((psVector *) values);
    20242024    if (inF32 == NULL) {
    2025         inF32 = (psVector *) in;
     2025        inF32 = (psVector *) values;
    20262026        mustFreeVectorIn = 0;
    20272027    }
     
    21872187                       const psVector* errors,
    21882188                       const psVector* mask,
    2189                        psU32 maskVal)
     2189                       psMaskType maskVal)
    21902190{
    21912191    PS_ASSERT_PTR_NON_NULL(stats, NULL);
Note: See TracChangeset for help on using the changeset viewer.