Logo ROOT  
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#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 ~SequentialProposal() override {}
39
40 ClassDefOverride(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
#define ClassDefOverride(name, id)
Definition: Rtypes.h:339
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:56
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