getAttackProbDistribution: Attacks Probability Distribution

Description Usage Arguments Value Examples

View source: R/getAattackProbDistribution.R

Description

For a given email and a given label, this function computes the probability distribution over the possible attacks of that email.

Usage

1
getAttackProbDistribution(x, y, fit, var = 0.99, iter = 1000)

Arguments

x

the email.

y

the label of the email, 0 for innocent 1 for malicious.

fit

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

Value

This function returns a vector with the probabilities of the possible attacks.

This function returns a probability distribution over the attacks to the specific emails.

Examples

1
getAttackProbDsitribution(x,y)

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