Added gregories patch to fitcenter.
Implements a valerr on the peak command
This commit is contained in:
@ -483,6 +483,12 @@ int FitWrapper(SConnection * pCon, SicsInterp * pSics, void *pData,
|
|||||||
SCWrite(pCon, pBueffel, eValue);
|
SCWrite(pCon, pBueffel, eValue);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
/* print peak position and its uncertainty */
|
||||||
|
if (strcmp(argv[1], "valerr") == 0) {
|
||||||
|
snprintf(pBueffel, sizeof(pBueffel)-1, "%f,%f", self->fCenter, self->fStddev);
|
||||||
|
SCWrite(pCon, pBueffel, eValue);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* print results */
|
/* print results */
|
||||||
|
Reference in New Issue
Block a user