Language:EN
Pages: 2
Words: 391
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Page 1 Preview
the histogram then fit with the fitting function u

The histogram then fit with the fitting function using the fit method

- Create Gaussian distribution with noise (choose 1 method to do that) and fit proper function to it.

G

#include <TH1F.h>

#include <TF1.h>

double sigma = 1.0;

// Create a random number generator

for (int i = 0; i < 10000; ++i) {

double noise = 0.01 * random.Uniform(-1, 1); // Generate noise from a uniform distribution

TF1* fittingFunction = new TF1("fittingFunction", "gaus");

// Fit the histogram with the fitting function

canvas->Update();

return 0;

You are viewing 1/3rd of the document.Purchase the document to get full access instantly

Immediately available after payment
Both online and downloadable
No strings attached
How It Works
Login account
Login Your Account
Place in cart
Add to Cart
send in the money
Make payment
Document download
Download File
img

Uploaded by : patricia

PageId: DOCB80CED5