net.sf.myra.datamining.statistics
Class CurveFactory.PRCurveFactory

java.lang.Object
  extended by net.sf.myra.datamining.statistics.CurveFactory
      extended by net.sf.myra.datamining.statistics.CurveFactory.PRCurveFactory
Enclosing class:
CurveFactory

public static class CurveFactory.PRCurveFactory
extends CurveFactory

This class represents the Precision-Recall curve factory.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.myra.datamining.statistics.CurveFactory
CurveFactory.PRCurveFactory, CurveFactory.ROCCurveFactory
 
Field Summary
 
Fields inherited from class net.sf.myra.datamining.statistics.CurveFactory
NEGATIVE, POSITIVE, PRECISION_RECALL, ROC
 
Constructor Summary
CurveFactory.PRCurveFactory()
           
 
Method Summary
 Curve create(double[][] values)
          Returns a precision-recall curve based on the specified (predicted,class) values distribution.
 Curve create(double[][] values, double[] thresholds)
          Returns a precision-recall curve based on the specified (predicted,class) values distribution.
 
Methods inherited from class net.sf.myra.datamining.statistics.CurveFactory
count, sort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CurveFactory.PRCurveFactory

public CurveFactory.PRCurveFactory()
Method Detail

create

public Curve create(double[][] values)
Returns a precision-recall curve based on the specified (predicted,class) values distribution.

Specified by:
create in class CurveFactory
Parameters:
values - the values distribution.
Returns:
a precision-recall Curve instance.

create

public Curve create(double[][] values,
                    double[] thresholds)
Returns a precision-recall curve based on the specified (predicted,class) values distribution.

Parameters:
values - the values distribution.
thresholds - the thresholds values.
Returns:
a precision-recall Curve instance.


Copyright © 2013. All Rights Reserved.