Definition at line 28 of file LikelihoodGradientJob.h.
#include </home/sftnight/build/workspace/root-makedoc-v632/rootspi/rdoc/src/v6-32-00-patches/roofit/roofitcore/src/TestStatistics/LikelihoodGradientJob.h>
◆ GradientCalculatorMode
◆ LikelihoodGradientJob()
◆ calculate_all()
void RooFit::TestStatistics::LikelihoodGradientJob::calculate_all |
( |
| ) |
|
|
private |
◆ evaluate_task()
void RooFit::TestStatistics::LikelihoodGradientJob::evaluate_task |
( |
std::size_t |
task | ) |
|
|
overrideprivatevirtual |
◆ fillGradient()
void RooFit::TestStatistics::LikelihoodGradientJob::fillGradient |
( |
double * |
grad | ) |
|
|
overridevirtual |
◆ fillGradientWithPrevResult()
void RooFit::TestStatistics::LikelihoodGradientJob::fillGradientWithPrevResult |
( |
double * |
grad, |
|
|
double * |
previous_grad, |
|
|
double * |
previous_g2, |
|
|
double * |
previous_gstep |
|
) |
| |
|
overridevirtual |
◆ isCalculating()
bool RooFit::TestStatistics::LikelihoodGradientJob::isCalculating |
( |
| ) |
|
|
inlineoverridevirtual |
◆ receive_task_result_on_master()
bool RooFit::TestStatistics::LikelihoodGradientJob::receive_task_result_on_master |
( |
const zmq::message_t & |
message | ) |
|
|
overrideprivatevirtual |
◆ run_derivator()
void RooFit::TestStatistics::LikelihoodGradientJob::run_derivator |
( |
unsigned int |
i_component | ) |
const |
|
private |
◆ send_back_task_result_from_worker()
void RooFit::TestStatistics::LikelihoodGradientJob::send_back_task_result_from_worker |
( |
std::size_t |
task | ) |
|
|
overrideprivatevirtual |
◆ setErrorLevel()
void RooFit::TestStatistics::LikelihoodGradientJob::setErrorLevel |
( |
double |
error_level | ) |
const |
|
private |
◆ setGradTolerance()
void RooFit::TestStatistics::LikelihoodGradientJob::setGradTolerance |
( |
double |
grad_tolerance | ) |
const |
|
private |
◆ setNCycles()
void RooFit::TestStatistics::LikelihoodGradientJob::setNCycles |
( |
unsigned int |
ncycles | ) |
const |
|
private |
◆ setStepTolerance()
void RooFit::TestStatistics::LikelihoodGradientJob::setStepTolerance |
( |
double |
step_tolerance | ) |
const |
|
private |
◆ setStrategy()
void RooFit::TestStatistics::LikelihoodGradientJob::setStrategy |
( |
int |
istrat | ) |
|
|
private |
◆ synchronizeParameterSettings() [1/2]
void RooFit::TestStatistics::LikelihoodGradientJob::synchronizeParameterSettings |
( |
const std::vector< ROOT::Fit::ParameterSettings > & |
parameter_settings | ) |
|
|
overrideprivatevirtual |
◆ synchronizeParameterSettings() [2/2]
◆ synchronizeWithMinimizer()
◆ update_state()
void RooFit::TestStatistics::LikelihoodGradientJob::update_state |
( |
| ) |
|
|
overridevirtual |
Virtual function to update any necessary state on workers.
This function is called from the worker loop when something is received over the ZeroMQ "SUB" socket. The master process sends messages to workers on its "PUB" socket. Thus, we can update, for instance, parameter values on the worker that were updated since the last call on the master side.
- Note
- Implementers: make sure to also update the state_id_ member.
Reimplemented from RooFit::MultiProcess::Job.
Definition at line 147 of file LikelihoodGradientJob.cxx.
◆ update_workers_state()
void RooFit::TestStatistics::LikelihoodGradientJob::update_workers_state |
( |
| ) |
|
|
private |
◆ update_workers_state_isCalculating()
void RooFit::TestStatistics::LikelihoodGradientJob::update_workers_state_isCalculating |
( |
| ) |
|
|
private |
◆ updateMinuitInternalParameterValues()
void RooFit::TestStatistics::LikelihoodGradientJob::updateMinuitInternalParameterValues |
( |
const std::vector< double > & |
minuit_internal_x | ) |
|
|
overrideprivatevirtual |
◆ usesMinuitInternalValues()
bool RooFit::TestStatistics::LikelihoodGradientJob::usesMinuitInternalValues |
( |
| ) |
|
|
overrideprivatevirtual |
Implement usesMinuitInternalValues to return true when you want Minuit to send this class Minuit-internal values, or return false when you want "regular" Minuit-external values.
Minuit internally uses a transformed parameter space to graciously handle externally mandated parameter range boundaries. Transformation from Minuit-internal to external (i.e. "regular") parameters is done using trigonometric functions that in some cases can cause a few bits of precision loss with respect to the original parameter values. To circumvent this, Minuit also allows external gradient providers (like LikelihoodGradientWrapper) to take the Minuit-internal parameter values directly, without transformation. This way, the gradient provider (e.g. the implementation of this class) can handle transformation manually, possibly with higher precision.
Implements RooFit::TestStatistics::LikelihoodGradientWrapper.
Definition at line 274 of file LikelihoodGradientJob.cxx.
◆ grad_
◆ gradf_
◆ isCalculating_
bool RooFit::TestStatistics::LikelihoodGradientJob::isCalculating_ = false |
|
mutableprivate |
◆ minuit_internal_x_
std::vector<double> RooFit::TestStatistics::LikelihoodGradientJob::minuit_internal_x_ |
|
private |
◆ N_tasks_
std::size_t RooFit::TestStatistics::LikelihoodGradientJob::N_tasks_ = 0 |
|
private |
◆ N_tasks_at_workers_
std::size_t RooFit::TestStatistics::LikelihoodGradientJob::N_tasks_at_workers_ = 0 |
|
private |
◆ offsets_previous_
roofit/roofitcore/src/TestStatistics/LikelihoodGradientJob.h
roofit/roofitcore/src/TestStatistics/LikelihoodGradientJob.cxx