Changeset 31451 for trunk/psModules/src/objects/pmPeaks.c
- Timestamp:
- May 5, 2011, 11:02:53 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPeaks.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPeaks.c
r31153 r31451 150 150 tmp->x = x; 151 151 tmp->y = y; 152 tmp->xf = x; 153 tmp->yf = y; 154 tmp->dx = NAN; 155 tmp->dy = NAN; 152 156 tmp->detValue = value; 153 157 tmp->rawFlux = value; // set this by default: it is up to the user to supply a better value … … 155 159 tmp->smoothFlux = value; // set this by default: it is up to the user to supply a better value 156 160 tmp->smoothFluxStdev = NAN; 157 // tmp->SN = 0;158 tmp->xf = x;159 tmp->yf = y;160 161 tmp->assigned = false; 161 162 tmp->type = type; … … 166 167 psTrace("psModules.objects", 10, "---- %s() end ----\n", __func__); 167 168 return(tmp); 169 } 170 171 // copy to an already allocated peak 172 bool pmPeakCopy(pmPeak *out, pmPeak *in) 173 { 174 out->x = in->x; 175 out->y = in->y; 176 out->xf = in->xf; 177 out->yf = in->yf; 178 out->dx = in->dx; 179 out->dy = in->dy; 180 out->detValue = in->detValue; 181 out->rawFlux = in->rawFlux; 182 out->rawFluxStdev = in->rawFluxStdev; 183 out->smoothFlux = in->smoothFlux; 184 out->smoothFluxStdev = in->smoothFluxStdev; 185 out->assigned = in->assigned; 186 out->type = in->type; 187 188 return true; 168 189 } 169 190
Note:
See TracChangeset
for help on using the changeset viewer.
