13 for (
Int_t j = 0; j < 3; j++)
14 c1->GetPad(j+1)->Modified();
29 hpx[0] =
new TH1F(
"hp0",
"Normal histogram",1000,-4,4);
30 hpx[1] =
new TH1K(
"hk1",
"Nearest Neighbour of order 3",1000,-4,4);
31 hpx[2] =
new TH1K(
"hk2",
"Nearest Neighbour of order 16",1000,-4,4,16);
33 for (
Int_t j = 0; j < 3; j++) {
43 for (
Int_t i = 0; i <= 300; i++) {
45 for (
Int_t j = 0; j < 3; j++)
51 for (
Int_t j = 0; j < 3; j++)
R__EXTERN TRandom * gRandom
R__EXTERN TSystem * gSystem
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
1-D histogram with a float per channel (see TH1 documentation)
TH1K class supports the nearest K Neighbours method, widely used in cluster analysis.
TH1 is the base class of all histogram classes in ROOT.
void Draw(Option_t *option="") override
Draw this histogram with options.
virtual void SetSeed(ULong_t seed=0)
Set the random generator seed.
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)