public class StatTest.InformationAboutClass
extends java.lang.Object
Class to store general information of the algorithms. Class properties: Class name Number of correct classifications Number of mistakes List of incorrect classes Number of not classified Number of examples of this class
Constructor and Description |
---|
InformationAboutClass()
Default Constructor
|
InformationAboutClass(java.lang.String name)
Parameter Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getCorrectClassifications()
Returns the number of correct classifications done.
|
java.util.List |
getMistakeClass()
Returns the list of mistaken classes
|
int |
getMistakeClassifications()
Returns the number of incorrect classifications done.
|
java.lang.String |
getName()
Returns the algorithm's name.
|
int |
getNotClassified()
Returns the number of not classified examples
|
void |
getNotClassified(int notClassified)
Sets the number of not classified examples with the one given.
|
int |
getTotalNumberClass()
Returns the total number of classes of the problem.
|
void |
setCorrectClassifications(int correctClassifications)
Sets the number of correct classifications done with the one given.
|
void |
setMistakeClass(java.lang.String mistakeClass)
Adds the mistaken class given as arguments.
|
void |
setMistakeClassifications(int mistakeClassifications)
Sets the number of incorrect classifications done with the one given.
|
void |
setName(java.lang.String name)
Sets the algorithm's name with the one given.
|
void |
setTotalNumberClass(int totalNumberClass)
Sets the total number of classes of the problem with the one given.
|
public InformationAboutClass()
public InformationAboutClass(java.lang.String name)
name
- name given.public void setName(java.lang.String name)
name
- given name.public java.lang.String getName()
public void setCorrectClassifications(int correctClassifications)
correctClassifications
- number given.public int getCorrectClassifications()
public void setMistakeClassifications(int mistakeClassifications)
mistakeClassifications
- number given.public int getMistakeClassifications()
public void getNotClassified(int notClassified)
notClassified
- number given.public int getNotClassified()
public void setTotalNumberClass(int totalNumberClass)
totalNumberClass
- given number of classes.public int getTotalNumberClass()
public void setMistakeClass(java.lang.String mistakeClass)
mistakeClass
- mistaked class to be added.public java.util.List getMistakeClass()