|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarf.Stats.StatisticalObject
marf.Stats.WordStats
marf.Stats.Observation
public class Observation
Generic Observation of an occurrence of something (like a word or an n-gram).
$Id: Observation.java,v 1.13 2007/12/18 21:57:14 mokhov Exp $
| Field Summary | |
|---|---|
protected boolean |
bSeen
Indicates a fact that this observation has been "seen". |
protected double |
dPosteriorProbability
Probability of the observation after it was observed. |
protected double |
dPriorProbability
Probability of the observation of happening prior it actually being observed. |
| Fields inherited from class marf.Stats.StatisticalObject |
|---|
iFrequency, iRank |
| Constructor Summary | |
|---|---|
Observation()
Constructs default unseen observation with zero probabilities. |
|
Observation(Observation poObservation)
Copy-constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Implements Cloneable interface for the Observation object. |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
double |
getPosteriorProbability()
Allows querying for the current value of the posterior probability. |
double |
getPriorProbability()
Allows querying for the current value of the prior probability. |
void |
markAsSeen()
Marks this observation as seen. |
void |
setPosteriorProbability(double pdPosteriorProbability)
Allows setting the new value of the posterior probability. |
void |
setPriorProbability(double pdPriorProbability)
Allows setting the new value of the prior probability. |
boolean |
wasSeen()
Indicates whether this observation was actually seen. |
| Methods inherited from class marf.Stats.WordStats |
|---|
getLexeme, toString |
| Methods inherited from class marf.Stats.StatisticalObject |
|---|
equals, getFrequency, getRank, hashCode, incFrequency, incRank, setRank |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double dPriorProbability
protected double dPosteriorProbability
protected boolean bSeen
| Constructor Detail |
|---|
public Observation()
public Observation(Observation poObservation)
poObservation - the Observation object to copy properties of| Method Detail |
|---|
public boolean wasSeen()
true if it was seenpublic void markAsSeen()
public double getPosteriorProbability()
public void setPosteriorProbability(double pdPosteriorProbability)
pdPosteriorProbability - the posterior probability to setpublic double getPriorProbability()
public void setPriorProbability(double pdPriorProbability)
pdPriorProbability - the prior probability to setpublic java.lang.Object clone()
clone in class WordStatsObject.clone()public static java.lang.String getMARFSourceCodeRevision()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||