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

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.RandomPositiveScore
All Implemented Interfaces:
BadScorer, ScorerIF

public final class RandomPositiveScore
extends AbstractNonParamScorer
implements BadScorer

Returns a random positive score with matching 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
RandomPositiveScore()
           
 
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

RandomPositiveScore

public RandomPositiveScore()
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.