com.mancrd.ahah.classifier
Class LabelOutput

java.lang.Object
  extended by com.mancrd.ahah.classifier.LabelOutput
All Implemented Interfaces:
Comparable<LabelOutput>

public class LabelOutput
extends Object
implements Comparable<LabelOutput>

A simple POJO holding a classification label and the corresponding activation

Author:
timmolter

Constructor Summary
LabelOutput(int label, float confidence)
          Constructor
 
Method Summary
 int compareTo(LabelOutput other)
           
 float getConfidence()
           
 int getLabel()
           
 String getLabelstring()
           
 void setLabelstring(String labelstring)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LabelOutput

public LabelOutput(int label,
                   float confidence)
Constructor

Parameters:
label -
Method Detail

getLabel

public int getLabel()

getConfidence

public float getConfidence()

compareTo

public int compareTo(LabelOutput other)
Specified by:
compareTo in interface Comparable<LabelOutput>

toString

public String toString()
Overrides:
toString in class Object

getLabelstring

public String getLabelstring()

setLabelstring

public void setLabelstring(String labelstring)


Copyright © 2013–2014 M. Alexander Nugent Consulting, Research and Devlopment. All rights reserved.