Skip to contents

Each interval is divided by its width, so windows of different size stay comparable.

Usage

accDeviationScore(data, breaks = c(-250, -200, -25, 25, 200, 250))

Arguments

data

A data.table with the columns x and avg_ins.

breaks

Interval borders of the footprint windows.

Value

A numeric value.

Examples

prof <- data.table::data.table(x = -250:250, avg_ins = 1)
accDeviationScore(prof)
#> [1] 1