I didn't think it was non-trivial. n should be the total number of instances in the distribution, but as we commented earlier, we use the same function for probability distributions and then n must be provided separately... I don't know. Maybe you're right...