-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Introduce TMath::KNNDensity
and deprecate TH1K
#19765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I would suggest adding "\deprecated" to the doxygen docu of TH1K.
Maybe also remove the code in TWebCanvas.cxx, or add a pragma-diagnostic-ignore to prevent failure in debian125
Test Results 20 files 20 suites 3d 21h 36m 21s ⏱️ For more details on these failures, see this check. Results for commit 0065e65. ♻️ This comment has been updated with latest results. |
242c855
to
0065e65
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this upgrade. Feel free to merge as soon as the tests pass.
The `TH1K` class is deprecated and will be removed in 6.40. It did not implement the `TH1` interface consistently, and limited the usability of the k-neighbors method it implemented by closely coupling the algorithm with the histogram class. Instead, one should use the new `TMath::KNNDensity` function that implements the same mathematical logic.
The
TH1K
class is deprecated and will be removed in 6.40. It did not implement theTH1
interface consistently, and limited the usability of the k-neighbors method it implemented by closely coupling the algorithm with the histogram class. Instead, one should use the newTMath::KNNDensity
function that implements the same mathematical logic.Closes #19761 and https://its.cern.ch/jira/browse/ROOT-5686.
TODO: