[Package Index] [Index] [Users' Guide] [SVAPI Home Page]

Class COM.novell.SVAPI.Score

public final class Score

The Score class holds a score that was the result of a verification or identification call. A score has a required boolean component and optional scalar, vector and blob components.

See Also: VerificationEngine, IdentificationEngine


Constructor Index

Score(boolean)
Constructs a new score that has only a simple boolean decision.
Score(boolean, byte[])
Constructs a new score that has a simple boolean decision and a binary score.
Score(boolean, CohortScore[])
Constructs a new score that has a simple boolean decision and a cohort score.
Score(boolean, double)
Constructs a new score that has a simple boolean decision and a scalar score.


Method Index

getBinaryScore()
Returns the binary part of the score.
getCohortScore()
Returns the cohort part of the score.
getScalarScore()
Returns the scalar part of the score.
getScore()
Returns the simple boolean descision.
hasBinaryScore()
Returns true if there is a binary part of the score.
hasCohortScore()
Returns true if there is a cohort part of the score.
hasScalarScore()
Returns true if there is a scalar part of the score.
set(byte[])
Sets the binary part of the score.
set(CohortScore[])
Sets the cohort part of the score.
set(double)
Sets the scalar part of the score.


Constructors



Score

public Score(boolean s)
Constructs a new score that has only a simple boolean decision.


Score

public Score(boolean s, double rs)
Constructs a new score that has a simple boolean decision and a scalar score.


Score

public Score(boolean s, CohortScore cs[])
Constructs a new score that has a simple boolean decision and a cohort score. When doing verification, the score for the assumed speaker must be first in the array.


Score

public Score(boolean s, byte bs[])
Constructs a new score that has a simple boolean decision and a binary score.


set

public void set(double rs)
Sets the scalar part of the score.


set

public void set(CohortScore cs[])
Sets the cohort part of the score. When doing verification, the score for the assumed speaker must be first in the array.


set

public void set(byte bs[])
Sets the binary part of the score.


hasScalarScore

public boolean hasScalarScore()
Returns true if there is a scalar part of the score.


hasCohortScore

public boolean hasCohortScore()
Returns true if there is a cohort part of the score.


hasBinaryScore

public boolean hasBinaryScore()
Returns true if there is a binary part of the score.


getScore

public boolean getScore()
Returns the simple boolean descision.


getScalarScore

public double getScalarScore()
Returns the scalar part of the score. If the scalar part of the score has not been set, this function returns NaN.


getCohortScore

public CohortScore[] getCohortScore()
Returns the cohort part of the score. If the cohort part of the score has not been set, this function returns null.


getBinaryScore

public byte[] getBinaryScore()
Returns the binary part of the score. If the binary part of the score has not been set, this function returns null.



[Package Index] [Index] [Users' Guide] [SVAPI Home Page]

rwille@novell.com