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 binClst
smth(obj, dlta = 1)
# S4 method for binClstStck
smth(obj, dlta = 1)
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.
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.
# -- 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)