estimate.probability {philentropy}R Documentation

Estimate Probability Vectors From Count Vectors

Description

This function takes a numeric count vector and returns estimated probabilities of the corresponding counts.

The following probability estimation methods are implemented in this function:

Usage

estimate.probability(x, method = "empirical")

Arguments

x

a numeric vector storing count values.

method

a character string specifying the estimation method tht should be used to estimate probabilities from input counts.

Value

a numeric probability vector.

Author(s)

Hajk-Georg Drost

Examples


# generate a count vector
x <- runif(100)

# generate a probability vector from corresponding counts
# method = "empirical"
x.prob <- estimate.probability(x, method = "empirical")


[Package philentropy version 0.8.0 Index]