Skip to contents

Finds the meaningful gaps between the points in s

Usage

meaningful_gaps_local(x, seg_points, change_points, min_gap = 2)

# S3 method for Histogram
meaningful_gaps_local(x, seg_points, change_points, min_gap = 2)

# S3 method for numeric
meaningful_gaps_local(x, seg_points, change_points, min_gap = 2)

Arguments

x

a numeric vector representing the density of a histogram

seg_points

the segment points in the vector x

change_points

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

min_gap

The minimum gap to be considered a meaningful gap

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