Logo ROOT   6.08/07
Reference Guide
SequentialProposal.h
Go to the documentation of this file.
1 // @(#)root/roostats:$Id$
2 // Authors: Giovanni Petrucciani 4/21/2011
3 /*************************************************************************
4  * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
5  * All rights reserved. *
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 #ifndef ROOT_Rtypes
15 #include "Rtypes.h"
16 #endif
17 #ifndef ROOSTATS_ProposalFunction
19 #endif
20 #ifndef ROO_ARG_SET
21 #include "RooArgSet.h"
22 #endif
23 
24 namespace RooStats {
25 
26 /**
27 
28  Class implementing a proposal function that samples the parameter space
29  by moving only in one coordinate (choosen randomly) at each step
30 
31  \ingroup Roostats
32 
33  */
34 
35 
37 
38  public:
40  SequentialProposal(double divisor) ;
41 
42  /// Populate xPrime with a new proposed point
43  virtual void Propose(RooArgSet& xPrime, RooArgSet& x);
44 
45  /// Determine whether or not the proposal density is symmetric for
46  /// points x1 and x2 - that is, whether the probabilty of reaching x2
47  /// from x1 is equal to the probability of reaching x1 from x2
49 
50  /// Return the probability of proposing the point x1 given the starting
51  /// point x2
53 
54  virtual ~SequentialProposal() {}
55 
56  ClassDef(SequentialProposal,1) // A concrete implementation of ProposalFunction, that uniformly samples the parameter space.
57 
58  private:
59 
60  double fDivisor;
61 };
62 
63 }
64 
65 #endif
ProposalFunction is an interface for all proposal functions that would be used with a Markov Chain Mo...
virtual Double_t GetProposalDensity(RooArgSet &x1, RooArgSet &x2)
Return the probability of proposing the point x1 given the starting point x2.
bool Bool_t
Definition: RtypesCore.h:59
static const double x2[5]
Double_t x[n]
Definition: legend1.C:17
#define ClassDef(name, id)
Definition: Rtypes.h:254
Class implementing a proposal function that samples the parameter space by moving only in one coordin...
Namespace for the RooStats classes.
Definition: Asimov.h:20
static const double x1[5]
double Double_t
Definition: RtypesCore.h:55
virtual void Propose(RooArgSet &xPrime, RooArgSet &x)
Populate xPrime with a new proposed point.
virtual Bool_t IsSymmetric(RooArgSet &x1, RooArgSet &x2)
Determine whether or not the proposal density is symmetric for points x1 and x2 - that is...