Skip to main content
. 2013 Dec 20;8(12):e82317. doi: 10.1371/journal.pone.0082317

Table 2. Algorithm 2: An implementation of Algorithm 1 in which practical adjustments are included.

Input (a) likelihood function Inline graphic; (b) prior Inline graphic; (c) number Inline graphic of active parameter vectors in use during nested sampling; (d) procedure for determining a region Inline graphic of parameter space that encloses a set of parameter vectors Inline graphic; (e) fraction Inline graphic of Inline graphic to be estimated.
Output: an estimate Inline graphic of Inline graphic.
1: Let Inline graphic be a set of Inline graphic parameter vectors Inline graphic
2: Inline graphic
3: Inline graphic
4:Repeat
5: Inline graphic
6: Inline graphic
7: Inline graphic
8: if Inline graphic then
9: Inline graphic ▹Estimated segment of Inline graphic
10: Inline graphic
11: Inline graphic ▹Restricted prior
12: Inline graphic
13: Inline graphic
14: until: Inline graphic ▹The stopping condition
return Inline graphic