34 SequentialProposal::SequentialProposal(
double divisor) :
52 double val = var->getVal(), max = var->getMax(), min = var->getMin(), len = max - min;
54 while (val > max) val -= len;
55 while (val < min) val += len;
ProposalFunction is an interface for all proposal functions that would be used with a Markov Chain Mo...
static Double_t gaussian(TRandom *generator=randomGenerator())
Return a Gaussian random variable with mean 0 and variance 1.
virtual Double_t GetProposalDensity(RooArgSet &x1, RooArgSet &x2)
Return the probability of proposing the point x1 given the starting point x2.
void SetParameters(const RooArgSet *desiredVals, RooArgSet *paramsToChange)
RooRealVar represents a fundamental (non-derived) real valued object.
Class implementing a proposal function that samples the parameter space by moving only in one coordin...
Namespace for the RooStats classes.
static Double_t uniform(TRandom *generator=randomGenerator())
Return a number uniformly distributed from (0,1)
virtual void Propose(RooArgSet &xPrime, RooArgSet &x)
Populate xPrime with a new proposed point.
RooLinkedListIter iterator(Bool_t dir=kIterForward) const
RooLinkedListIter is the TIterator implementation for RooLinkedList.
virtual Bool_t IsSymmetric(RooArgSet &x1, RooArgSet &x2)
Determine whether or not the proposal density is symmetric for points x1 and x2 - that is...