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++) {
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual Double_t GetRandom()
Return a random number following this function shape.
A TGraph is an object made of two arrays X and Y with npoints each.
virtual void SetTitle(const char *title="")
Change (i.e.
virtual void Draw(Option_t *chopt="")
Draw this graph with its current attributes.
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.
virtual void Draw(Option_t *option="")
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.