Logo ROOT   6.16/01
Reference Guide
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#include "TIterator.h"
23
24namespace RooStats {
25
27
28 public:
30
31 /// Populate xPrime with a new proposed point
32 virtual void Propose(RooArgSet& xPrime, RooArgSet& x);
33
34 /// Determine whether or not the proposal density is symmetric for
35 /// points x1 and x2 - that is, whether the probability of reaching x2
36 /// from x1 is equal to the probability of reaching x1 from x2
38
39 /// Return the probability of proposing the point x1 given the starting
40 /// point x2
42
43 virtual ~UniformProposal() {}
44
45 ClassDef(UniformProposal,1) /// A concrete implementation of ProposalFunction, that uniformly samples the parameter space.
46 };
47}
48
49#endif
static const double x2[5]
static const double x1[5]
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:324
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:28
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 ...
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
@(#)root/roostats:$Id$ Author: George Lewis, Kyle Cranmer
Definition: Asimov.h:20