Skip to contents

Computes H, the maximum H_h,p(a,b)

Usage

maximum_entropy(x, s = NULL, increasing = TRUE)

Arguments

x

numeric vector representing the density of a histogram

s

numeric vector representing initial segmentation indices

increasing

logical, whether the Grenander estimator should assume x is increasing or decreasing

Value

numeric vector, representing maximum relative entropy of all subsegments of h

(the distribution of normalizing x) and p (the Grenander estimator of x)