sGMRFmix (version 0.3.0)

compute_anomaly_score: Compute anomaly scores

Description

Compute anomaly scores

Usage

compute_anomaly_score(obj, x, window_size = 1L, ...)

Arguments

obj

object

x

data.frame to compute anomaly scores

window_size

integer.

...

additional arguments

Value

matrix of anomaly scores

Examples

Run this code
# NOT RUN {
library(sGMRFmix)

set.seed(314)
train_data <- generate_train_data()
fit <- sGMRFmix(train_data, K = 7, rho = 10)

test_data <- generate_test_data()
compute_anomaly_score(fit, test_data)

# }

Run the code above in your browser using DataLab