Illustrates the advantages of a TH1K histogram
{
c1->GetPad(
j + 1)->Modified();
}
{
hpx[0] =
new TH1F(
"hp0",
"Normal histogram", 1000, -4, 4);
hpx[1] =
new TH1K(
"hk1",
"Nearest Neighbour of order 3", 1000, -4, 4);
hpx[2] =
new TH1K(
"hk2",
"Nearest Neighbour of order 16", 1000, -4, 4, 16);
hpx[
j]->SetFillColor(48);
}
for (
Int_t i = 0; i <= 300; i++) {
}
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TRandom * gRandom
R__EXTERN TSystem * gSystem
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.
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)
- Date
- November 2022
- Author
- Victor Perevovchikov
Definition in file hist012_TH1_hksimple.C.