Learn R Programming

rasterdiv (version 0.3.5)

.CRE_: Cumulative Residual Entropy

Description

This function calculates the Cumulative Residual Entropy (CRE) for a given set of values.

Usage

.CRE_(B, base = exp(1))

Value

A numeric value representing the CRE.

Arguments

B

A numeric vector or matrix representing the values for which CRE is to be calculated.

base

The base of the logarithm used in the calculation. The default is the natural logarithm (e).

Examples

Run this code
B <- c(1, 2, 3, 4)
.CRE_(B)

Run the code above in your browser using DataLab