get_neg_ll_all_hist: Take data, projections and histograms as input, return the...

Description Usage Arguments Value Examples

View source: R/get_neg_ll_all_hist.R

Description

Take data, projections and histograms as input, return the anomaly scores of the data.

Usage

1
get_neg_ll_all_hist(a, w, hists, inf_replace = log(1e-09))

Arguments

a

Input dataframe or data matrix.

w

Projections.

hists

Hisograms.

inf_replace

The quantity to use to replace the possible negative infinity got from calculating log density based on the histograms built. Default is log(1e-09).

Value

Anomaly scores.

Examples

1
2
3
4
a = matrix(rnorm(200, 0, 1), nrow = 20, ncol = 10)
bt_out = btloda(a,sparsity=NA, maxk=1000, inf_replace = log(1e-09))
b = matrix(rnorm(500, 0, 1), nrow = 50, ncol = 10)
get_neg_ll_all_hist(b, bt_out$pvh$w, bt_out$pvh$hists, inf_replace = log(1e-09))

liusi2019/btloda documentation built on Feb. 2, 2020, 5:31 a.m.