smth: Posterior smoothing of single local labels.

smthR Documentation

Posterior smoothing of single local labels.

Description

smth Performs a posterior smoothing of single local labels (locations that differ from their neighbouring locations while the later have equal labels).

Usage

smth(obj, dlta = 1)

## S4 method for signature 'binClst'
smth(obj, dlta = 1)

## S4 method for signature 'binClstStck'
smth(obj, dlta = 1)

Arguments

obj

Either a binClst_instance or a binClstStck_instance.

dlta

A numeric value in the range (0,1) (default is 1) indicating the user's will to accept a change of label. The change of label is done whenever the decrease in likelihood is not greater then dlta.

Value

A smoothed copy of the input instance. In the case of a binClstStck_instance smoothing is performed at population level as well as at each individual trajectory in the stack.

Examples

# -- cluster the example path with a prior smooth of 1 hour --
mysmoothbcp <- stbc(expth,smth=1,info=-1)
# -- apply a posterior smoothing --
mysmoothbcpsmoothed <- smth(mysmoothbcp,dlta=0.5)

EMbC documentation built on Oct. 3, 2023, 5:07 p.m.