compute_anomaly_score {sGMRFmix}R Documentation

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

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)


[Package sGMRFmix version 0.3.0 Index]