ROOT   Reference Guide
Searching...
No Matches
SequentialProposal.h
Go to the documentation of this file.
1// @(#)root/roostats:$Id$
2// Authors: Giovanni Petrucciani 4/21/2011
3/*************************************************************************
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. * 8 * For the list of contributors see$ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef RooStats_SequentialProposal
12#define RooStats_SequentialProposal
13
14#include "Rtypes.h"
16#include "RooArgSet.h"
17
18namespace RooStats {
19
21
22 public:
24 SequentialProposal(double divisor) ;
25
26 /// Populate xPrime with a new proposed point
27 void Propose(RooArgSet& xPrime, RooArgSet& x) override;
28
29 /// Determine whether or not the proposal density is symmetric for
30 /// points x1 and x2 - that is, whether the probability of reaching x2
31 /// from x1 is equal to the probability of reaching x1 from x2
32 bool IsSymmetric(RooArgSet& x1, RooArgSet& x2) override ;
33
34 /// Return the probability of proposing the point x1 given the starting
35 /// point x2
36 double GetProposalDensity(RooArgSet& x1, RooArgSet& x2) override;
37
38 ClassDefOverride(SequentialProposal,1) // A concrete implementation of ProposalFunction, that uniformly samples the parameter space.
39
40 private:
41
42 double fDivisor;
43};
44
45}
46
47#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55
ProposalFunction is an interface for all proposal functions that would be used with a Markov Chain Mo...
Class implementing a proposal function that samples the parameter space by moving only in one coordin...
double GetProposalDensity(RooArgSet &x1, RooArgSet &x2) override
Return the probability of proposing the point x1 given the starting point x2.
bool IsSymmetric(RooArgSet &x1, RooArgSet &x2) override
Determine whether or not the proposal density is symmetric for points x1 and x2 - that is,...
void Propose(RooArgSet &xPrime, RooArgSet &x) override
Populate xPrime with a new proposed point.
Double_t x[n]
Definition legend1.C:17
Namespace for the RooStats classes.
Definition Asimov.h:19