28 std::normal_distribution
normal(10.0, 4.0);
29 for (std::size_t i = 0; i < 1000; i++) {
37 std::cout <<
"hist with expected mean = " <<
normal.mean() <<
"\n";
39 std::cout <<
", mean = " <<
h1->
GetMean();
44 auto *
c =
new TCanvas(
"c",
"", 10, 10, 900, 500);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
A histogram for aggregation of data along multiple dimensions.
virtual Double_t GetStdDev(Int_t axis=1) const
Returns the Standard Deviation (Sigma).
virtual Double_t GetMean(Int_t axis=1) const
For axis = 1,2 or 3 returns the mean value of the histogram along X,Y or Z axis.
virtual Double_t GetEntries() const
Return the current number of entries.
virtual TH1 * DrawCopy(Option_t *option="", const char *name_postfix="_copy") const
Copy this histogram and Draw in the current pad.
std::unique_ptr< TH1I > ConvertToTH1I(const RHistEngine< int > &engine)
Convert a one-dimensional histogram to TH1I.