| ensemble_vote | R Documentation |
Applies the voting of dfr_ensemble() to detection series
computed beforehand, one column per detector (crisp ensemble with
tolerance <= 1, fuzzy ensemble otherwise). This is how the paper combines
its detectors.
ensemble_vote(
detections,
voting = c("majority", "efer", "threshold"),
threshold = NULL,
tolerance = 0,
lookahead = TRUE
)
detections |
Logical (or 0/1) matrix or data frame, one row per time step and one column per detector. |
voting |
Voting rule: |
threshold |
Vote needed by the |
tolerance |
Time tolerance k of the fuzzy scores; |
lookahead |
With fuzzy scores, |
A logical vector with the ensemble drifts, with attribute vote
(the vote of every time step, evaluated with the detections left after the
earlier ensemble drifts).
detections <- matrix(FALSE, 100, 3)
detections[c(40, 43, 47), 1:3] <- diag(3) == 1
# No crisp majority: the detections are not simultaneous.
which(ensemble_vote(detections, "majority"))
# A fuzzy majority with a tolerance of 10 time steps.
which(ensemble_vote(detections, "majority", tolerance = 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.