sampler | R Documentation |
Draw samples from the posterior distribution to give the locations of anomalous segments.
sampler(bard_result, gamma = 1/3, num_draws = 1000)
bard_result |
An instance of the S4 class |
gamma |
Parameter of loss function giving the cost of a false negative i.e. incorrectly allocating an anomalous point as being non-anomalous. For more details see Section 3.5 of \insertCitebardwell2017;textualanomaly. |
num_draws |
Number of samples to draw from the posterior distribution. |
Returns an S4 class of type bard.sampler.class
.
bardwell2017anomaly
\insertRefJSS-anomaly-paper-finalanomaly
bard
library(anomaly)
data(simulated)
# run bard
res<-bard(sim.data, alpha = 1e-3, h = 0.5)
# sample
sampler(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.