|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.Stats.StatisticalObject
public class StatisticalObject
Generic Statistical Object.
$Id: StatisticalObject.java,v 1.9 2005/07/30 20:05:45 mokhov Exp $
Field Summary | |
---|---|
protected int |
iFrequency
Word's frequency in a given corpus. |
protected int |
iRank
Word's rank in the corpus. |
Constructor Summary | |
---|---|
StatisticalObject()
Constructs a default statistical object. |
|
StatisticalObject(int piFrequency)
Constructs a statistical object with a frequency parameter |
Method Summary | |
---|---|
int |
getFrequency()
Retrieves the object's frequency. |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
int |
getRank()
Restrieves the object's rank. |
int |
incFrequency()
Increments the object frequency by one. |
int |
incRank()
Increments rank of the object by one. |
void |
setRank(int piRank)
Allows setting rank of this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int iFrequency
0
.
protected int iRank
-1
, i.e. unset.
Constructor Detail |
---|
public StatisticalObject()
public StatisticalObject(int piFrequency)
piFrequency
- the desired frequency of this objectMethod Detail |
---|
public final void setRank(int piRank)
piRank
- the new rankpublic final int incRank()
public final int getRank()
public final int getFrequency()
public final int incFrequency()
public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |