It's for inspection purposes.

More precisely, the algorithm produces samples. With these sample you can compute whatever you want. In most use case you want the empirical mean and this is what the function does and return. But user may want other moments like second order to estimated error bar. This callback is here for that.