org.shapelogic.machinelearning
Class ConfidenceArraySelector

java.lang.Object
  extended by org.shapelogic.machinelearning.ConfidenceArraySelector
All Implemented Interfaces:
Calc1<double[],java.lang.String>

public class ConfidenceArraySelector
extends java.lang.Object
implements Calc1<double[],java.lang.String>

ConfidenceArraySelector takes a double[] and creates a String.
Translates a double[] that could come from a neural network to either the number of the one that is winning walue if any is or to a name for that.

Author:
Sami Badawi

Field Summary
protected  double _limit
           
protected  java.util.List<java.lang.String> _ohNames
          Parallel to the NumberedStream.
static double DEFAULT_LIMIT
           
 
Constructor Summary
ConfidenceArraySelector(java.util.List<java.lang.String> ohNames)
          Use the ohName to also be the name of the input stream.
ConfidenceArraySelector(java.util.List<java.lang.String> ohNames, double limit)
          Use the ohName to also be the name of the input stream.
 
Method Summary
 java.util.List<java.lang.String> getOhNames()
           
 java.lang.String invoke(double[] input)
           
 void setOhNames(java.util.List<java.lang.String> ohNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LIMIT

public static final double DEFAULT_LIMIT
See Also:
Constant Field Values

_ohNames

protected java.util.List<java.lang.String> _ohNames
Parallel to the NumberedStream.


_limit

protected double _limit
Constructor Detail

ConfidenceArraySelector

public ConfidenceArraySelector(java.util.List<java.lang.String> ohNames,
                               double limit)
Use the ohName to also be the name of the input stream.

Parameters:
ohNames -
limit -

ConfidenceArraySelector

public ConfidenceArraySelector(java.util.List<java.lang.String> ohNames)
Use the ohName to also be the name of the input stream.

Parameters:
ohNames -
Method Detail

invoke

public java.lang.String invoke(double[] input)
Specified by:
invoke in interface Calc1<double[],java.lang.String>

setOhNames

public void setOhNames(java.util.List<java.lang.String> ohNames)

getOhNames

public java.util.List<java.lang.String> getOhNames()


Copyright © 2009. All Rights Reserved.