#include "TGraphErrors.h"
#include "TF1.h"
#include "TRandom.h"
#include "TCanvas.h"
#include "TLegend.h"
#include "TMath.h"
Go to the source code of this file.
Functions | |
void | makePoints (Int_t n, Double_t *x, Double_t *y, Double_t *e, Int_t p) |
void | fitLinear () |
void fitLinear | ( | ) |
Definition at line 11 of file fitLinear.C.
References TLegend::AddEntry(), TGraph::Draw(), TLegend::Draw(), f2, TGraph::Fit(), TGraph::GetFunction(), kBlue, kRed, makePoints(), n, TAttFill::SetFillColor(), TPad::SetGrid(), TAttLine::SetLineColor(), TAttLine::SetLineWidth(), TAttMarker::SetMarkerColor(), TNamed::SetName(), x, and y.