|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.datamining.statistics.CurveFactory
public abstract class CurveFactory
Nested Class Summary | |
---|---|
static class |
CurveFactory.PRCurveFactory
This class represents the Precision-Recall curve factory. |
static class |
CurveFactory.ROCCurveFactory
This class represents the Precision-Recall curve factory. |
Field Summary | |
---|---|
static int |
NEGATIVE
The negative value constant. |
static int |
POSITIVE
The positive value constant. |
static CurveFactory.PRCurveFactory |
PRECISION_RECALL
The precision-recall curve factory. |
static CurveFactory.ROCCurveFactory |
ROC
The ROC curve factory. |
Constructor Summary | |
---|---|
CurveFactory()
|
Method Summary | |
---|---|
protected static int |
count(double[][] values,
int value)
Returns the number of occurences of the specified class value. |
abstract Curve |
create(double[][] values)
Returns a curve based on the specified (predicted,class) values. |
protected static void |
sort(double[][] values)
Sorts (based on a bubble sort algorithm) a bidimensional array (predicted value,class value). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NEGATIVE
public static final int POSITIVE
public static final CurveFactory.PRCurveFactory PRECISION_RECALL
public static final CurveFactory.ROCCurveFactory ROC
Constructor Detail |
---|
public CurveFactory()
Method Detail |
---|
public abstract Curve create(double[][] values)
values
-
protected static int count(double[][] values, int value)
values
- the bidimensional array of values.value
- the class value.
protected static void sort(double[][] values)
values
- the array to be sorted.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |