KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SnowMailClient > SpamFilter > SpamResult


1 package SnowMailClient.SpamFilter;
2
3 import java.util.*;
4
5 public final class SpamResult
6 {
7   private double probability;
8   private final Vector<Word> mostSignificantWords;
9   private final Vector<Word> allWords;
10
11   public SpamResult(Vector<Word> allWords, Vector<Word> mostSignificantWords, double probability)
12   {
13     this.mostSignificantWords = mostSignificantWords;
14     this.allWords = allWords;
15     this.probability = probability;
16   }
17
18   public double getProbability() { return probability; }
19
20   public Vector<Word> getMostSignificantWords() { return mostSignificantWords; }
21   public Vector<Word> getAllWords() { return allWords; }
22
23 }
Popular Tags