getACRAlabel: ACRA classificator

Description Usage Arguments Value Examples

View source: R/main.R

Description

For a given possibly attacked email, given utilities, and given parameters of NB classifier, this functions returns the label of the email, claculated using the ACRA machinery.

Usage

1
2
getACRAlabel(x, fit, var = 0.99, ut = matrix(c(1, -10, -1, 1), nrow = 2,
  byrow = T, dimnames = list(c("0", "1"), c("0", "1"))))

Arguments

x

the email.

fit

object of class naive-Bayes including the results from training.

var

Variance. Measure of certainty about attacker.

Value

This function returns the label of the possibly attacked email, calculated with ACRA.

Examples

1

roinaveiro/acAra documentation built on May 27, 2019, 1:47 p.m.