Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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#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 virtual void Propose(RooArgSet& xPrime, RooArgSet& x);
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
33
34 /// Return the probability of proposing the point x1 given the starting
35 /// point x2
37
39
40 ClassDef(SequentialProposal,1) // A concrete implementation of ProposalFunction, that uniformly samples the parameter space.
41
42 private:
43
44 double fDivisor;
45};
46
47}
48
49#endif
static const double x2[5]
static const double x1[5]
double Double_t
Definition RtypesCore.h:59
#define ClassDef(name, id)
Definition Rtypes.h:325
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:29
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...
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,...
virtual Double_t GetProposalDensity(RooArgSet &x1, RooArgSet &x2)
Return the probability of proposing the point x1 given the starting point x2.
Double_t x[n]
Definition legend1.C:17
Namespace for the RooStats classes.
Definition Asimov.h:19