Compute the cross entropy between the "true" and "unnatural" distributions
p and q from associated time series ps and qs,
respectively. Cross entropy<U+2019>s local variant is equivalent to the
self-information of q, and as such is implemented by the local block
entropy.
Usage
cross_entropy(ps, qs)
Arguments
ps
Vector specifying a time series drawn from
the true distribution.
qs
Vector specifying a time series drawn from
the unnatural distribution.