[ROOT-4722] Chisquare method for TH1 Created: 24/Nov/12  Updated: 15/May/19  Resolved: 03/Dec/13

Status: Closed
Project: ROOT
Component/s: Core Libraries
Affects Version/s: < v5-28-00
Fix Version/s: None

Type: Bug Priority: High
Reporter: Erkcan Ozcan Assignee: Lorenzo Moneta
Resolution: Fixed Votes: 0
Labels: None
Environment:

All


External issue ID: bugs99058
External issue URL: https://savannah.cern.ch/bugs/?99058
Development:

 Description   

Hi,

Could we please have a chisquare method for TH1 the same way we have for TGraph?

http://root.cern.ch/root/html/TGraph.html#TGraph:Chisquare

Of course I am aware that I can do a fit, but imagine I fix the parameters of a function manually and want to get the chisquare, there is no way of doing it (unless I compute the chisquare by hand).

I have tried fitting to a function with no parameters or with parameters but all parameters fixed, but these yield zero.

Thanks,
e.



 Comments   
Comment by Lorenzo Moneta [ 27/Nov/12 ]

HI,

Your requests make sense. The chi2 should also be computed in case all the parameters are fixed. I will try to fix also that case

Thanks for your report

Lorenzo

Comment by Lorenzo Moneta [ 03/Dec/13 ]

A new function, TH1::Chisquare is now implemented in 5.34 patches and master

Regards

Lorenzo

Generated at Sun Sep 22 01:35:08 CEST 2019 using Jira 7.13.1#713001-sha1:5e06076c2d215a6f699b7e5c90ab2fae7ba5a1ce.