public class ProjectedRecallPrecisionResultImplBasic extends java.lang.Object implements ProjectedRecallPrecisionResult
ProjectedRecallPrecisionResult.ProjectedMeasuresFailedExceptioncomparator| Constructor and Description |
|---|
ProjectedRecallPrecisionResultImplBasic(int k,
java.util.Collection<java.lang.String> activities,
CompareParameters.RecallName recallName,
java.lang.Object system,
java.lang.Object model,
boolean recallComputed,
boolean precisionComputed) |
| Modifier and Type | Method and Description |
|---|---|
long |
binom(int n,
int k) |
java.lang.String[] |
getActivities() |
int |
getK() |
java.lang.Object |
getModel() |
int |
getNumberOfFailedMeasures() |
double |
getPrecision(java.lang.String... activities) |
double |
getRecall(java.lang.String... activities) |
CompareParameters.RecallName |
getRecallName() |
java.lang.Object |
getSystem() |
boolean |
isPrecisionComputed() |
boolean |
isRecallComputed() |
void |
set(double recall,
double precision,
java.lang.String... activities) |
public ProjectedRecallPrecisionResultImplBasic(int k,
java.util.Collection<java.lang.String> activities,
CompareParameters.RecallName recallName,
java.lang.Object system,
java.lang.Object model,
boolean recallComputed,
boolean precisionComputed)
throws AutomatonFailedException
AutomatonFailedExceptionpublic void set(double recall,
double precision,
java.lang.String... activities)
set in interface ProjectedRecallPrecisionResultrecall - precision - activities - Thread safe on unique activitiespublic double getRecall(java.lang.String... activities)
throws ProjectedRecallPrecisionResult.ProjectedMeasuresFailedException
getRecall in interface ProjectedRecallPrecisionResultactivities - Can be of any size <= k.ProjectedMeasuresFailedExceptionProjectedRecallPrecisionResult.ProjectedMeasuresFailedExceptionpublic double getPrecision(java.lang.String... activities)
throws ProjectedRecallPrecisionResult.ProjectedMeasuresFailedException
getPrecision in interface ProjectedRecallPrecisionResultactivities - Can be of any size <= k.ProjectedMeasuresFailedExceptionProjectedRecallPrecisionResult.ProjectedMeasuresFailedExceptionpublic int getNumberOfFailedMeasures()
getNumberOfFailedMeasures in interface ProjectedRecallPrecisionResultpublic int getK()
getK in interface ProjectedRecallPrecisionResultpublic CompareParameters.RecallName getRecallName()
getRecallName in interface ProjectedRecallPrecisionResultpublic java.lang.String[] getActivities()
getActivities in interface ProjectedRecallPrecisionResultpublic long binom(int n,
int k)
public java.lang.Object getSystem()
getSystem in interface ProjectedRecallPrecisionResultpublic java.lang.Object getModel()
getModel in interface ProjectedRecallPrecisionResultpublic boolean isRecallComputed()
isRecallComputed in interface ProjectedRecallPrecisionResultpublic boolean isPrecisionComputed()
isPrecisionComputed in interface ProjectedRecallPrecisionResult