Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
UniformProposal.h
Go to the documentation of this file.
1// @(#)root/roostats:$Id$
2// Authors: Kevin Belasco 17/06/2009
3// Authors: Kyle Cranmer 17/06/2009
4/*************************************************************************
5 * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOSTATS_UniformProposal
13#define ROOSTATS_UniformProposal
14
15#include "Rtypes.h"
16
18
19#include "RooArgSet.h"
20#include "RooMsgService.h"
21#include "RooRealVar.h"
22
23namespace RooStats {
24
26
27 public:
28 UniformProposal() = default;
29
30 /// Populate xPrime with a new proposed point
31 void Propose(RooArgSet& xPrime, RooArgSet& x) override;
32
33 /// Determine whether or not the proposal density is symmetric for
34 /// points x1 and x2 - that is, whether the probability of reaching x2
35 /// from x1 is equal to the probability of reaching x1 from x2
36 bool IsSymmetric(RooArgSet& x1, RooArgSet& x2) override;
37
38 /// Return the probability of proposing the point x1 given the starting
39 /// point x2
40 double GetProposalDensity(RooArgSet& x1, RooArgSet& x2) override;
41
42 ClassDefOverride(UniformProposal,1) // A concrete implementation of ProposalFunction, that uniformly samples the parameter space.
43 };
44}
45
46#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
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:24
ProposalFunction is an interface for all proposal functions that would be used with a Markov Chain Mo...
UniformProposal is a concrete implementation of the ProposalFunction interface for use with a Markov ...
void Propose(RooArgSet &xPrime, RooArgSet &x) override
Populate xPrime with a new proposed point.
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,...
Double_t x[n]
Definition legend1.C:17
Namespace for the RooStats classes.
Definition CodegenImpl.h:58