|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.parameters.Parameter
de.jstacs.parameters.CollectionParameter
de.jstacs.parameters.MultiSelectionCollectionParameter
de.jstacs.classifier.MeasureParameters
public final class MeasureParameters
This class holds the parameters for the evaluate-methods of a
classifier.
AbstractClassifier.evaluate(MeasureParameters, boolean,
de.jstacs.data.Sample...),
AbstractClassifier.evaluateAll(MeasureParameters, boolean,
de.jstacs.data.Sample...)| Nested Class Summary | |
|---|---|
static class |
MeasureParameters.Measure
This enum defines all measures that are currently
implemented in Jstacs. |
| Nested classes/interfaces inherited from class de.jstacs.parameters.CollectionParameter |
|---|
CollectionParameter.InconsistentCollectionException |
| Field Summary |
|---|
| Fields inherited from class de.jstacs.parameters.CollectionParameter |
|---|
errorMessage, parameters, userSelected |
| Fields inherited from class de.jstacs.parameters.Parameter |
|---|
neededReference, neededReferenceId, parent |
| Constructor Summary | |
|---|---|
MeasureParameters(boolean evaluateAll)
Creates a new empty instance of MeasureParameters. |
|
MeasureParameters(boolean evaluateAll,
double sp,
double snForFPR,
double snForPPV)
Creates a new instance of MeasureParameters. |
|
MeasureParameters(boolean evaluateAll,
double sp,
double snForFPR,
double snForPPV,
double minSpec,
double maxSpec,
int steps,
RangeParameter.Scale scale)
Creates a new instance of MeasureParameters. |
|
MeasureParameters(StringBuffer representation)
The standard constructor for the interface Storable. |
|
| Method Summary | |
|---|---|
void |
deselectAll()
Deselects all measures, i.e. calls setSelected(Measure, boolean)
for all MeasureParameters.Measures. |
LinkedList<Result> |
getAnnotation()
Returns the selected parameters and their values as a LinkedList
of Results. |
boolean |
isSelected(MeasureParameters.Measure sel)
Indicates if the option sel is selected. |
void |
setSelected(MeasureParameters.Measure sel,
boolean b)
Selects or deselects an option sel depending on the new
selection b. |
| Methods inherited from class de.jstacs.parameters.MultiSelectionCollectionParameter |
|---|
checkValue, clone, fromXML, getNumberOfNexts, getNumberOfValues, getSelected, getValue, getValueFor, getValueFor, getValues, hasDefaultOrIsSet, isAtomic, isRanged, isSelected, isSelected, isSet, next, reset, resetToFirst, setDefault, setSelected, setSelected, setValue, simplify, toXML, valuesToString |
| Methods inherited from class de.jstacs.parameters.CollectionParameter |
|---|
appendCollection, createParameterSet, equals, extractCollection, fromGalaxy, getComment, getDatatype, getDefault, getErrorMessage, getName, getParametersInCollection, getRangedInstance, hasDefault, isRangeable, isRequired, isUserSelected, setRangeable, toGalaxy, toString |
| Methods inherited from class de.jstacs.parameters.Parameter |
|---|
getId, getNeededReference, getNeededReferenceId, getParent, setNeededReference, setParent |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MeasureParameters(boolean evaluateAll)
throws ParameterException
MeasureParameters.
evaluateAll - indicates if the instance contains the parameters for the
method
AbstractClassifier.evaluateAll(MeasureParameters, boolean, de.jstacs.data.Sample...)
or only the parameters for the method
AbstractClassifier.evaluate(MeasureParameters, boolean, de.jstacs.data.Sample...)
ParameterException - if something went wrong while constructing the parametersMeasureParameters.Measure,
MultiSelectionCollectionParameter.MultiSelectionCollectionParameter(DataType,
String[], Object[], String[], String, String, boolean)
public MeasureParameters(boolean evaluateAll,
double sp,
double snForFPR,
double snForPPV)
throws ParameterException
MeasureParameters. All measures are
switched on and the parameters of specificity and sensitivity are set to
the given values.
evaluateAll - indicates if the instance contains the parameters for the
method
AbstractClassifier.evaluateAll(MeasureParameters, boolean, de.jstacs.data.Sample...)
or only the parameters for the method
AbstractClassifier.evaluate(MeasureParameters, boolean, de.jstacs.data.Sample...)sp - the (fixed) specificitysnForFPR - the (fixed) sensitivity for the FPRsnForPPV - the (fixed) sensitivity for the PPV
ParameterException - if something went wrong while constructing the parametersMeasureParameters.Measure,
MultiSelectionCollectionParameter.MultiSelectionCollectionParameter(DataType,
String[], Object[], String[], String, String, boolean)
public MeasureParameters(boolean evaluateAll,
double sp,
double snForFPR,
double snForPPV,
double minSpec,
double maxSpec,
int steps,
RangeParameter.Scale scale)
throws ParameterException
MeasureParameters. All measures are
switched on and the parameters of specificity and sensitivity are set to
the given values.
evaluateAll - indicates if the instance contains the parameters for the
method
AbstractClassifier.evaluateAll(MeasureParameters, boolean, de.jstacs.data.Sample...)
or only the parameters for the method
AbstractClassifier.evaluate(MeasureParameters, boolean, de.jstacs.data.Sample...)sp - the (fixed) specificitysnForFPR - the (fixed) sensitivity for the FPRsnForPPV - the (fixed) sensitivity for the PPVminSpec - only used for MeasureParameters.Measure.PartialROCCurve: the minimal specificitymaxSpec - only used for MeasureParameters.Measure.PartialROCCurve: the maximal specificitysteps - only used for MeasureParameters.Measure.PartialROCCurve: the number of stepsscale - only used for MeasureParameters.Measure.PartialROCCurve: see RangeParameter
ParameterException - if something went wrong while constructing the parametersRangeParameter.Scale,
MeasureParameters.Measure,
RangeParameter,
MultiSelectionCollectionParameter.MultiSelectionCollectionParameter(DataType,
String[], Object[], String[], String, String, boolean)
public MeasureParameters(StringBuffer representation)
throws NonParsableException
Storable.
Creates a new instance of MeasureParameters out of its XML
representation.
representation - the XML representation as StringBuffer
NonParsableException - if the MeasureParameters could not be reconstructed
out of the XML representation (the StringBuffer
representation could not be parsed)MultiSelectionCollectionParameter.MultiSelectionCollectionParameter(StringBuffer),
Storable| Method Detail |
|---|
public void setSelected(MeasureParameters.Measure sel,
boolean b)
sel depending on the new
selection b.
sel - the optionb - the new selectionMultiSelectionCollectionParameter.setSelected(String, boolean)public boolean isSelected(MeasureParameters.Measure sel)
sel is selected.
sel - the option
true if the option sel is selected,
false otherwiseMultiSelectionCollectionParameter.isSelected(String)public void deselectAll()
setSelected(Measure, boolean)
for all MeasureParameters.Measures.
setSelected(Measure, boolean)public LinkedList<Result> getAnnotation()
LinkedList
of Results.
LinkedList of all selected parameters and their values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||