#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <gsl/gsl_statistics.h>
#include <gsl/gsl_fit.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_multifit_nlin.h>
#include "common.h"
Include dependency graph for calibrate.c:
Data Structures | |
struct | cal_fit_info |
Data to which the calibration curve is fit. More... | |
Defines | |
#define | MAXITER 1000 |
The maximum number of fitting iterations. | |
#define | MAXFLEX 6 |
The maximum number of channels by which a peak location can vary from the fit. | |
Functions | |
int | pf_calibrate (struct pf_data *d, struct pf_cal_fit *f, char *fn) |
Calibrate input using known data points. | |
double | pf_calfunc (struct pf_cal_fit *f, double ch) |
Evaluate the calibration fit function for a given peak. |
|
The maximum number of channels by which a peak location can vary from the fit.
|
|
The maximum number of fitting iterations.
|
|
Evaluate the calibration fit function for a given peak.
|
|
Calibrate input using known data points.
|