Changeset 4409 for trunk/psLib/src/math/psStats.c
- Timestamp:
- Jun 28, 2005, 10:17:52 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psStats.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psStats.c
r4392 r4409 14 14 * stats->binsize 15 15 * 16 * @version $Revision: 1.13 5$ $Name: not supported by cvs2svn $17 * @date $Date: 2005-06-2 5 02:02:05$16 * @version $Revision: 1.136 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2005-06-28 20:17:52 $ 18 18 * 19 19 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1987 1987 *****************************************************************************/ 1988 1988 psHistogram* psVectorHistogram(psHistogram* out, 1989 const psVector* in,1989 const psVector* values, 1990 1990 const psVector* errors, 1991 1991 const psVector* mask, 1992 ps U32maskVal)1992 psMaskType maskVal) 1993 1993 { 1994 1994 PS_ASSERT_PTR_NON_NULL(out, NULL); … … 1999 1999 PS_ASSERT_VECTOR_TYPE(out->nums, PS_TYPE_F32, NULL); 2000 2000 PS_ASSERT_INT_NONNEGATIVE(out->nums->n, NULL); 2001 PS_ASSERT_VECTOR_NON_NULL( in, out);2001 PS_ASSERT_VECTOR_NON_NULL(values, out); 2002 2002 if (mask != NULL) { 2003 PS_ASSERT_VECTORS_SIZE_EQUAL( in, mask, NULL);2003 PS_ASSERT_VECTORS_SIZE_EQUAL(values, mask, NULL); 2004 2004 PS_ASSERT_VECTOR_TYPE(mask, PS_TYPE_U8, NULL); 2005 2005 } 2006 2006 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); 2009 2009 } 2010 2010 … … 2021 2021 2022 2022 // Convert input and errors vectors to F32 if necessary. 2023 inF32 = p_psConvertToF32((psVector *) in);2023 inF32 = p_psConvertToF32((psVector *) values); 2024 2024 if (inF32 == NULL) { 2025 inF32 = (psVector *) in;2025 inF32 = (psVector *) values; 2026 2026 mustFreeVectorIn = 0; 2027 2027 } … … 2187 2187 const psVector* errors, 2188 2188 const psVector* mask, 2189 ps U32maskVal)2189 psMaskType maskVal) 2190 2190 { 2191 2191 PS_ASSERT_PTR_NON_NULL(stats, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
