In a simulation, I got the following error message:
Exp[-709.859] is too small to represent as a normalized machine number; precision may be lost.
The reason why I think this happens, it's because in the next portion of code,
data is a list that may get very small numbers, at the edge of machine precision, and I need to normalize them to 1, but in a way that they may be used as probabilities for a Multinomial Distribution.
Normalize[Threshold[Normalize[data, Total], $MachineEpsilon/10], Total];
This is the only place in my programme where I use
The problem is that I haven't been able to reproduce that error message... So, I'm not sure how to correct it. Any help would be appreciated.