Added gregories patch to fitcenter.

Implements a valerr on the peak command
This commit is contained in:
2015-06-16 11:02:36 +02:00
parent 6c40d4c06c
commit 08e1e58c42

View File

@ -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 */