11void padRefresh(
TPad *pad,
int flag=0)
33 hpx[0] =
new TH1F(
"hp0",
"Normal histogram",1000,-4,4);
34 hpx[1] =
new TH1K(
"hk1",
"Nearest Neighbour of order 3",1000,-4,4);
35 hpx[2] =
new TH1K(
"hk2",
"Nearest Neighbour of order 16",1000,-4,4,16);
48 for (
Int_t i = 0; i <= 300; i++) {
50 for (j=0;j<3;j++) {hpx[j]->
Fill(px);}
56 for (j=0;j<3;j++) hpx[j]->
Fit(
"gaus");
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.
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
Mother of all ROOT objects.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
The most important graphics class in the ROOT system.
void Modified(Bool_t flag=1)
virtual void Update()
Update pad.
TList * GetListOfPrimitives() const
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)