public class ProjectedRecallPrecisionResultImplBasic extends java.lang.Object implements ProjectedRecallPrecisionResult
ProjectedRecallPrecisionResult.ProjectedMeasuresFailedException
comparator
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
AutomatonFailedException
public void set(double recall, double precision, java.lang.String... activities)
set
in interface ProjectedRecallPrecisionResult
recall
- precision
- activities
- Thread safe on unique activitiespublic double getRecall(java.lang.String... activities) throws ProjectedRecallPrecisionResult.ProjectedMeasuresFailedException
getRecall
in interface ProjectedRecallPrecisionResult
activities
- Can be of any size <= k.ProjectedMeasuresFailedException
ProjectedRecallPrecisionResult.ProjectedMeasuresFailedException
public double getPrecision(java.lang.String... activities) throws ProjectedRecallPrecisionResult.ProjectedMeasuresFailedException
getPrecision
in interface ProjectedRecallPrecisionResult
activities
- Can be of any size <= k.ProjectedMeasuresFailedException
ProjectedRecallPrecisionResult.ProjectedMeasuresFailedException
public int getNumberOfFailedMeasures()
getNumberOfFailedMeasures
in interface ProjectedRecallPrecisionResult
public int getK()
getK
in interface ProjectedRecallPrecisionResult
public CompareParameters.RecallName getRecallName()
getRecallName
in interface ProjectedRecallPrecisionResult
public java.lang.String[] getActivities()
getActivities
in interface ProjectedRecallPrecisionResult
public long binom(int n, int k)
public java.lang.Object getSystem()
getSystem
in interface ProjectedRecallPrecisionResult
public java.lang.Object getModel()
getModel
in interface ProjectedRecallPrecisionResult
public boolean isRecallComputed()
isRecallComputed
in interface ProjectedRecallPrecisionResult
public boolean isPrecisionComputed()
isPrecisionComputed
in interface ProjectedRecallPrecisionResult