powered by
This function calculates the Cumulative Residual Entropy (CRE) for a given set of values.
.CRE_(B, base = exp(1))
A numeric value representing the CRE.
A numeric vector or matrix representing the values for which CRE is to be calculated.
The base of the logarithm used in the calculation. The default is the natural logarithm (e).
B <- c(1, 2, 3, 4) .CRE_(B)
Run the code above in your browser using DataLab