collective_anomalies {anomaly} | R Documentation |
Collective anomaly location, lags, and mean/variance changes.
Description
Creates a data frame containing collective anomaly locations, lags and changes in mean and variance as detected by capa
, pass
, and sampler
.
For an object created by capa
returns a data frame with columns containing the start and end position of the anomaly, the change in mean
due to the anomaly. For multivariate data a data frame with columns containing the start and end position of the anomaly, the variates
affected by the anomaly, as well as their the start and end lags. When type="mean"/"robustmean"
only the change in mean is reported. When type="meanvar"
both the change in mean and
change in variance are included. If merged=FALSE
(the default), then all the collective anomalies are processed individually even if they are common across multiple variates.
If merged=TRUE
, then the collective anomalies are grouped together across all variates that they appear in.
For an object produced by pass
or sampler
returns a data frame containing the start, end and strength of the collective anomalies.
Usage
collective_anomalies(object, ...)
## S4 method for signature 'bard.sampler.class'
collective_anomalies(object)
## S4 method for signature 'capa.class'
collective_anomalies(object, epoch = nrow(object@data), merged = FALSE)
## S4 method for signature 'pass.class'
collective_anomalies(object)
Arguments
object |
An instance of an S4 class produced by |
... |
TODO |
epoch |
Positive integer. CAPA methods are sequential and as such, can generate results up to, and including, any epoch within the data series. This can be controlled by the value
of |
merged |
Boolean value. If |
Value
A data frame.