 KLD–sampling is a variant of Monte Carlo Localization where at each iteration, a sample size formula_40 is calculated.The sample size formula_40 is calculated such that, with probability formula_42, the error between the true posterior and the sample-based approximation is less than formula_43.The variables formula_44 and formula_43 are fixed parameters.