v1.4.6.0
VanyaBelyaev
released this
21 Jan 08:12
·
2512 commits
to master
since this release
v1.4.6.0
New features:
- Add new method
dct_params
forROOT.RooFitResult
, that gets a dictionary of all parameter values plotting/canvas.py
: Add option to save the canvas congent in tar/tgz/zip-archives:
canvas >> 'test.zip'
canvas >> 'test.tar'
canvas >> 'test.tgz'
ostap/fitting/toys.py
new module with simple functions to performfitting toys
pdf = ...
results , stats = make_toys ( pdf , ## PDF to use
1000 , ## number of toys
[ 'mass' ] , ## varibales in dataset
{ 'nEvents' : 5000 } , ## configuration of pdf.generate
{ 'ncpus' : 2 } , ## configuration of pdf.fitTo
{ 'mean' : 0.0 , 'sigma' : 1.0 } ## parameters to use for generation
)
ostap/parallel/parallel_toys.py
a version of fnuctoion above for the
parallel execution via multiprocessing and/or parallel python)- add method
evaluate
forROOT.RooFitResult
to evaluate the arbintrary function of
fit-parameters with uncertaionties
res = ... ## ROOT.RooFitResult object
fun = lambda x,y,z : x*x+y*y+z*z
val = res.evaluate ( fun , ('x' , 'y' , 'z') )
- add
EvalNVEcov
andEvalNVEcor
evaluators intoostap.math.derivative
module.
These objects evalaute the value of function of N-argument taking into account
the uncertainties and correlations - add method
max_cor
toROOT.RooFitResult
to obtain the maximal correlation coefficient
res = ... ## ROOT.RooFitResult
coefficient , variable = res.max_cor ( 'X' ) ## get the maximal correlation
- add the column
Global/max correlation
for the table form ofROOT.RooFitResult
- add
ncpus
argument toostap.parallel.parallel_toys.parallel_toys
Backward incompatible changes
Bug fixes:
- Minor fix in
Files.hadd
- Couple of minor fixes in
ROOT.RooFitResult.sum
ROOT.RooFitResult.multiply
- Couple of minor fixes in
ostap.math.derivative