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
public Score(boolean s)
Constructs a new score that has only a simple boolean decision.
public Score(boolean s, double rs)
Constructs a new score that has a simple boolean decision and a scalar 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.
public Score(boolean s, byte bs[])
Constructs a new score that has a simple boolean decision and a binary score.
public void set(double rs)
Sets the scalar part of the score.
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.
public void set(byte bs[])
Sets the binary part of the score.
public boolean hasScalarScore()
Returns true if there is a scalar part of the score.
public boolean hasCohortScore()
Returns true if there is a cohort part of the score.
public boolean hasBinaryScore()
Returns true if there is a binary part of the score.
public boolean getScore()
Returns the simple boolean descision.
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.
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.
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.