mlpy.stats.normalize_logspace¶
-
mlpy.stats.
normalize_logspace
(a)[source]¶ Normalizes the array a in the log domain.
Each row of a is a log discrete distribution. Returns the array normalized in the log domain while minimizing the possibility of numerical underflow.
Parameters: a : ndarray
The array to normalize in the log domain.
Returns: a : ndarray
The array normalized in the log domain.
lnorm : float
log normalization constant.
Examples
>>> normalize_logspace()