Project

General

Profile

Feature #2298

Some candidates for cetlib

Added by Rob Kutschke over 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Infrastructure
Target version:
Start date:
12/12/2011
Due date:
% Done:

100%

Estimated time:
Scope:
Internal
Experiment:
-
SSI Package:
Duration:

Description

I have a family of classes that might be candidates for cetlib ( or you might be able to point me to a place in which similar classes already exist ). One example of this class is given in the files from the Mu2e repository

http://cdcvs0.fnal.gov/cgi-bin/public-cvs/cvsweb-public.cgi/mu2e/Offline/GeneralUtilities/inc/MinMax.hh?rev=1.5&content-type=text/x-cvsweb-markup
http://cdcvs0.fnal.gov/cgi-bin/public-cvs/cvsweb-public.cgi/mu2e/Offline/GeneralUtilities/src/MinMax.cc?rev=1.1&content-type=text/x-cvsweb-markup

I also have a similar class that computes, mean, rms and errors on these. I guess that ideally the complete set would include some higher momments and median. It would also include one class that does all of the above.

Rob

History

#1 Updated by Rob Kutschke over 8 years ago

One thing I should have said in the initial report. For my immediate purposes, I want a class that I can use as:

MinMax mm;
while ( ... ){
double x = ....;
mm.compare(x);
}
cout << mm.min() << " " << mm.max() << endl;

I don't need a method that takes a std::vector<double> ( or a begin()/ end() iterator pair), but it seems that such methods would be wise to include.

#2 Updated by Walter E Brown over 8 years ago

  • Status changed from New to Assigned
  • Assignee set to Walter E Brown

#3 Updated by Walter E Brown over 8 years ago

  • % Done changed from 0 to 80

Initial version drafted and pushed to repository. No sequence c'tor yet.

#4 Updated by Walter E Brown over 8 years ago

  • Category set to Infrastructure
  • % Done changed from 80 to 90

Repository updated with sequence c'tor and improved rms calculations. Still needs error calculations.

#5 Updated by Walter E Brown about 8 years ago

  • Status changed from Assigned to Resolved
  • Target version set to 1.00.07
  • % Done changed from 90 to 100

#6 Updated by Christopher Green about 8 years ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF