Uniform distribution

Hello, I want to create a TF1 uniform distribution for my histograms and I don’t know how Fit function I must to use, because 1/[0] don’t work. How can I create const function?

Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

  TF1 *f = ((TF1*)(gROOT->GetFunction("pol0")));
  // f->Print();
  f->SetRange(-100., 100.); // xmin, xmax
  f->SetParameter(0, 10.); // [0] = y


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.