Skip to contents

Fine-to-coarse segmentation algorithm

Usage

ftc(x, s = NULL, eps = 1)

# S3 method for Histogram
ftc(x, s = NULL, eps = 1)

# S3 method for numeric
ftc(x, s = NULL, eps = 1)

Arguments

x

numeric vector representing the density of a histogram

s

numeric vector representing initial segmentation indices

eps

numeric hyperparameter epsilon used to scale the resolution of segmentation

Value

a vector of points representing the boundaries between histograms

Examples

if (FALSE) {
x = c(0, 1, 2, 3, 4, 3, 2, 1, 0, 0, 0, 1, 2, 1, 0)
s = c(1, 9, 11, 15)
ftc(x = x, s = s, eps = 1)
}