tp.model
Class DocsRepresentDB.FeatureDF

java.lang.Object
  extended by tp.model.DocsRepresentDB.FeatureDF
All Implemented Interfaces:
java.lang.Comparable
Enclosing class:
DocsRepresentDB

public class DocsRepresentDB.FeatureDF
extends java.lang.Object
implements java.lang.Comparable

Class to store frequencies of features in documents.


Field Summary
 int document_frequent
           
 java.lang.String feature
           
 
Constructor Summary
DocsRepresentDB.FeatureDF(java.lang.String feature, int document_frequent)
          Class construtor.
 
Method Summary
 int compareTo(java.lang.Object t)
          Comparing two FeatureDF objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

document_frequent

public int document_frequent

feature

public java.lang.String feature
Constructor Detail

DocsRepresentDB.FeatureDF

public DocsRepresentDB.FeatureDF(java.lang.String feature,
                                 int document_frequent)
Class construtor.

Parameters:
feature - a word
document_frequent - document frequency of a word
Method Detail

compareTo

public int compareTo(java.lang.Object t)
Comparing two FeatureDF objects

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
t - the second object