analistica/ex-3/chisquared.h

18 lines
329 B
C
Raw Normal View History

2020-03-06 02:24:32 +01:00
#include "common.h"
#include <gsl/gsl_histogram2d.h>
/* Structure containing the histogram
* for the χ² minimisation.
* n: number of events
* h: 2D histogram
*/
struct hist {
size_t n;
gsl_histogram2d *h;
};
/* Minimum χ² estimation of of the parameters
* α,β,γ.
*/
min_result minChiSquared(struct hist data);