where, X is a vector of length M of the varying parameters in the model, R is a 2 × M matrix that describes the range over which the integral should be evaluated and p(X|H) is the parameter specific prior. The likelihood is the difference between the data and model and is defined in this work as it is implemented in the refnx reflectometry analysis package ,