UltraNest
Data Structures | Functions
sampler.h File Reference

The Sampler keeps a list of live points and replaces the worst live points in each iteration. More...

#include "common.h"
#include "draw.h"

Go to the source code of this file.

Data Structures

struct  draw_point
 
struct  ultranest_state
 

Functions

ultranest_state * ultranest_sampler_init (LikelihoodFunc, const char *root, int ndim, unsigned int nlive_points, ultranest_draw_state *draw_state)
 
point * ultranest_sampler_next (ultranest_state *state)
 
int ultranest_sampler_integrate_remainder (ultranest_state *state, const double logwidth, const double logVolremaining, const double logZ, weighted_point *points)
 

Detailed Description

The Sampler keeps a list of live points and replaces the worst live points in each iteration.

Function Documentation

ultranest_state* ultranest_sampler_init ( LikelihoodFunc  ,
const char *  root,
int  ndim,
unsigned int  nlive_points,
ultranest_draw_state *  draw_state 
)
int ultranest_sampler_integrate_remainder ( ultranest_state *  state,
const double  logwidth,
const double  logVolremaining,
const double  logZ,
weighted_point *  points 
)

Integrate the current live points (remainder on the integral). Step integration is used.

Parameters
stateSampler
logwidthcurrent point weight
logVolremainingcurrent remaining volume
logZcurrent evidence
pointsif given, stores the live points with weights into this array.
Returns
number of live points

References point::L, ultranest_state::live_points, ultranest_state::Lmax, ultranest_state::nlive_points, ultranest_state::remainderZ, and ultranest_state::remainderZerr.

Referenced by ultranest().

point* ultranest_sampler_next ( ultranest_state *  state)