Package com.namsor.oss.classify.bayes
Class ClassProbabilityImpl
- java.lang.Object
-
- com.namsor.oss.classify.bayes.ClassProbabilityImpl
-
- All Implemented Interfaces:
IClassProbability
public class ClassProbabilityImpl extends Object implements IClassProbability
Classification output and probability estimate.- Author:
- elian carsenat, NamSor SAS
-
-
Constructor Summary
Constructors Constructor Description ClassProbabilityImpl(String category, double probability)
Create an immutable classification output
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCategory()
Categorydouble
getProbability()
ProbabilityString
toString()
-
-
-
Constructor Detail
-
ClassProbabilityImpl
public ClassProbabilityImpl(String category, double probability)
Create an immutable classification output- Parameters:
category
- The classification categoryprobability
- The probability (likelyHood/sum(likelyhoods))
-
-
Method Detail
-
getCategory
public String getCategory()
Description copied from interface:IClassProbability
Category- Specified by:
getCategory
in interfaceIClassProbability
- Returns:
- The classification category
-
getProbability
public double getProbability()
Description copied from interface:IClassProbability
Probability- Specified by:
getProbability
in interfaceIClassProbability
- Returns:
- he probability (likelyHood/sum(likelyhoods))
-
-