Description Usage Arguments Value Examples
View source: R/getAattackProbDistribution.R
For a given email and a given label, this function computes the probability distribution over the possible attacks of that email.
1  | getAttackProbDistribution(x, y, fit, var = 0.99, iter = 1000)
 | 
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.  | 
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.
1  | getAttackProbDsitribution(x,y)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.