Skip to contents

Find all meaningful gaps

Usage

find_all_meaningful_gap(x, change_points)

# S3 method for Histogram
find_all_meaningful_gap(x, change_points)

# S3 method for numeric
find_all_meaningful_gap(x, change_points)

Arguments

x

a numeric vector representing the density of a histogram

change_points

the change points (e.g. local min/max) in the vector x

Value

A data.frame with columns

start

start index of the histogram count vector

end

end index of the histogram count vector

mgap

max gap score

entropy

relative entropy of the segment to a uniform distribution