org.hd.d.pg2k.ai.scorer.fixed
Class RandomScore

java.lang.Object
  extended by org.hd.d.pg2k.ai.scorer.AbstractScorer
      extended by org.hd.d.pg2k.ai.scorer.AbstractNonParamScorer
          extended by org.hd.d.pg2k.ai.scorer.fixed.RandomScore
All Implemented Interfaces:
BadScorer, ScorerIF

public final class RandomScore
extends AbstractNonParamScorer
implements BadScorer

Returns a completely random score with full confidence (no nulls). Can be used as a test (ie to ensure that it gets rejected as "bad").

Author:
dhd

Field Summary
 
Fields inherited from class org.hd.d.pg2k.ai.scorer.AbstractScorer
nameAndParameters, parameterNameRegex, parameterSepRegex, scorerNameRegex, SEPARATOR
 
Constructor Summary
RandomScore()
           
 
Method Summary
 ScoreAndConf computeScoreAndConfidence(SimpleExhibitPipelineIF dataSource, java.lang.String exhibitName)
          Returns random-score, maximum-confidence result, ignoring its input.
 
Methods inherited from class org.hd.d.pg2k.ai.scorer.AbstractNonParamScorer
createVariant, createVariant
 
Methods inherited from class org.hd.d.pg2k.ai.scorer.AbstractScorer
canonicalise, createPerturbedVariant, getBaseName, getDefaultName, getNameAndParameters, getParameterDefsAndValues, getPerturbedDefsAndValues, isValidParameterName, isValidScorerName, paramListAsMap, paramListAsString, parseNameAndParameters, similarNParams, verySimilar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomScore

public RandomScore()
Method Detail

computeScoreAndConfidence

public ScoreAndConf computeScoreAndConfidence(SimpleExhibitPipelineIF dataSource,
                                              java.lang.String exhibitName)
Returns random-score, maximum-confidence result, ignoring its input.

Specified by:
computeScoreAndConfidence in interface ScorerIF
Parameters:
dataSource - souce of exhibit data and metadata; never null
exhibitName - name of exhibit; must be syntactically valid and not null

DHD Multimedia Gallery V1.50.55

Copyright (c) 1996-2008, Damon Hart-Davis. All rights reserved.