Changeset 13971
- Timestamp:
- Jun 25, 2007, 2:27:56 PM (19 years ago)
- Location:
- trunk/ppStats/src
- Files:
-
- 2 edited
-
ppStatsFringe.c (modified) (2 diffs)
-
ppStatsFringe.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStats/src/ppStatsFringe.c
r13927 r13971 9 9 #include "ppStatsFringe.h" 10 10 11 bool ppStatsFringe(psMetadata *stats, const pmChip *chip, const char * fringeName)11 bool ppStatsFringe(psMetadata *stats, const pmChip *chip, const char *root, const char *fringeName) 12 12 { 13 13 PS_ASSERT_PTR_NON_NULL(chip, false); … … 28 28 for (int i = 0; i < fringes->nFringeFrames; i++) { 29 29 psString name = NULL; // Name of statistic 30 psStringAppend(&name, " FRINGE_%d", i);30 psStringAppend(&name, "%s_%d", root, i); 31 31 psMetadataAddF32(chipStats, PS_LIST_TAIL, name, 0, "Fringe amplitude", 32 32 fringes->coeff->data.F32[i + 1]); 33 33 psFree(name); 34 34 name = NULL; 35 psStringAppend(&name, " FRINGE_ERR_%d", i);35 psStringAppend(&name, "%s_ERR_%d", root, i); 36 36 psMetadataAddF32(chipStats, PS_LIST_TAIL, name, 0, "Fringe amplitude error", 37 37 fringes->coeffErr->data.F32[i + 1]); -
trunk/ppStats/src/ppStatsFringe.h
r13923 r13971 6 6 7 7 /// Supplement the statistics with the fringe solution 8 bool ppStatsFringe(psMetadata *stats, ///< Statistics metadata to supplement 9 const pmChip *chip, ///< The chip containing the solution 8 bool ppStatsFringe(psMetadata *stats, ///< Statistics metadata to supplement 9 const pmChip *chip, ///< The chip containing the solution 10 const char *root, ///< Name of output entry 10 11 const char *fringeName ///< Name of the solution in the chip->analysis 11 12 );
Note:
See TracChangeset
for help on using the changeset viewer.
