26 for (
Int_t i=0; i<
n; i++) {
27 xvalues[i] =
r.Uniform(-2, 10);
36 c1->SetHighLightColor(19);
41 gr1->
SetTitle(
"TMath::Vavilov density");
50 TF1 *
f1 =
new TF1(
"f1",
"TMath::Vavilov(x, 0.3, 0.5)", -2, 10);
52 TH1F *hist =
new TH1F(
"vavilov",
"vavilov", 100, -2, 10);
53 for (
int i=0; i<10000; i++) {
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual Double_t GetRandom(TRandom *rng=nullptr, Option_t *opt=nullptr)
Return a random number following this function shape.
A TGraph is an object made of two arrays X and Y with npoints each.
void Draw(Option_t *chopt="") override
Draw this graph with its current attributes.
void SetTitle(const char *title="") override
Change (i.e.
1-D histogram with a float per channel (see TH1 documentation)}
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
void Draw(Option_t *option="") override
Draw this histogram with options.
virtual void Scale(Double_t c1=1, Option_t *option="")
Multiply this histogram by a constant c1.
This is the base class for the ROOT Random number generators.
Double_t Vavilov(Double_t x, Double_t kappa, Double_t beta2)
Returns the value of the Vavilov density function.