|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmarf.Storage.Result
Represents a single classification result - ID and some value indicating either certain distance from the sample being recognized or a probability.
$Id: Result.java,v 1.22 2006/01/02 22:24:00 mokhov Exp $
| Field Summary | |
protected double |
dOutcome
Distance/probability. |
protected int |
iID
Identified subject's ID. |
protected java.lang.String |
strDescription
Textual result description. |
| Constructor Summary | |
Result()
Default Constructor. |
|
Result(double pdOutcome,
java.lang.String pstrDescription)
Outcome/description Constructor. |
|
Result(int piID)
ID Constructor. |
|
Result(int piID,
double pdOutcome)
ID/outcome Constructor. |
|
Result(int piID,
double pdOutcome,
java.lang.String pstrDescription)
General ID/outcome/description Constructor. |
|
Result(int piID,
java.lang.String pstrDescription)
ID/description Constructor. |
|
Result(Result poResult)
Copy-constructor. |
|
| Method Summary | |
java.lang.Object |
clone()
Implements Cloneable interface for the Result object. |
java.lang.String |
getDescription()
Retrieves textual description of the result. |
int |
getID()
Returns result's ID. |
static java.lang.String |
getMARFSourceCodeRevision()
Returns source code revision information. |
double |
getOutcome()
Retrieves the outcome value. |
void |
setDescription(java.lang.String pstrDescription)
Sets description of the result. |
void |
setID(int piID)
Sets ID, should only be called by a Classification module. |
void |
setOutcome(double pdOutcome)
Sets outcome value. |
java.lang.String |
toString()
Retrieves the result values in a form of string, which is of the following form: [ID:outcome:description]. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected int iID
protected java.lang.String strDescription
protected double dOutcome
| Constructor Detail |
public Result()
Result(0)
public Result(int piID)
Result(piID, 0, "").
piID - integer ID of the speaker
public Result(int piID,
double pdOutcome)
Result(piID, pdOutcome, "").
piID - integer ID of the subjectpdOutcome - distance/probability of the result
public Result(int piID,
java.lang.String pstrDescription)
Result(piID, 0, pstrDescription).
piID - integer ID of the subjectpstrDescription - textual description of the result
public Result(double pdOutcome,
java.lang.String pstrDescription)
Result(0, pdOutcome, pstrDescription).
pdOutcome - distance/probability of the resultpstrDescription - textual description of the result
public Result(int piID,
double pdOutcome,
java.lang.String pstrDescription)
piID - integer ID of the subjectpdOutcome - distance/probability of the resultpstrDescription - textual description of the resultpublic Result(Result poResult)
poResult - Result object to copy data from| Method Detail |
public final int getID()
public final double getOutcome()
public final java.lang.String getDescription()
public java.lang.String toString()
public final void setID(int piID)
piID - ID of the subject classifiedpublic final void setOutcome(double pdOutcome)
pdOutcome - resulting outcomepublic final void setDescription(java.lang.String pstrDescription)
pstrDescription - description stringpublic java.lang.Object clone()
Object.clone()public static java.lang.String getMARFSourceCodeRevision()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||