|
|||||||||
| Home >> All >> marf >> [ Stats overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
marf.Stats
Class StatisticalObject

java.lang.Objectmarf.Stats.StatisticalObject
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- WordStats
- public class StatisticalObject
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
Generic Statistical Object.
$Id: StatisticalObject.java,v 1.12 2005/08/14 01:15:56 mokhov Exp $
- Since:
- 0.3.0.2
- Version:
- $Revision: 1.12 $
| Field Summary | |
protected int |
iFrequency
Word's frequency in a given corpus. |
protected int |
iRank
Word's rank in the corpus. |
private static long |
serialVersionUID
For serialization versioning. |
| 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 |
serialVersionUID
private static final long serialVersionUID
- For serialization versioning.
When adding new members or make other structural
changes regenerate this number with the
serialvertool that comes with JDK.- Since:
- 0.3.0.4
- See Also:
- Constant Field Values
iFrequency
protected int iFrequency
- Word's frequency in a given corpus. Default
0.
iRank
protected int iRank
- Word's rank in the corpus. The rank of 1 indicates the top frequent word.
Default is
-1, i.e. unset.
| Constructor Detail |
StatisticalObject
public StatisticalObject()
- Constructs a default statistical object.
StatisticalObject
public StatisticalObject(int piFrequency)
- Constructs a statistical object with a frequency parameter
| Method Detail |
setRank
public final void setRank(int piRank)
- Allows setting rank of this object.
incRank
public final int incRank()
- Increments rank of the object by one.
getRank
public final int getRank()
- Restrieves the object's rank.
getFrequency
public final int getFrequency()
- Retrieves the object's frequency.
incFrequency
public final int incFrequency()
- Increments the object frequency by one.
getMARFSourceCodeRevision
public static java.lang.String getMARFSourceCodeRevision()
- Returns source code revision information.
|
|||||||||
| Home >> All >> marf >> [ Stats overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
marf.Stats.StatisticalObject