public class CalcQualityMeasures extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
CalcQualityMeasures.PrecisionCalc
Internal operator for precision calculation.
|
private static class |
CalcQualityMeasures.RecallCalc
Internal operator for recall calculation.
|
Constructor and Description |
---|
CalcQualityMeasures() |
Modifier and Type | Method and Description |
---|---|
static double |
calcPrecision(int tp,
int fp)
Calculates the precision from given true and false positives.
|
static double |
calcRecall(int tp,
int fn)
Calculates the recall value from given true positives and false negatives.
|
public static double calcRecall(int tp, int fn) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
Formular:
tp
- True positive count.fn
- False negative count.de.unihalle.informatik.Alida.exceptions.ALDOperatorException
- Thrown in case of failure.de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
- Thrown in case of failure.public static double calcPrecision(int tp, int fp) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
Formular:
tp
- True positive count.fp
- False positive count.de.unihalle.informatik.Alida.exceptions.ALDOperatorException
- Thrown in case of failure.de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
- Thrown in case of failure.Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.