Last chance! 50% off unlimited learning
Sale ends in
new("thresholds")
Create an empty thresholds. The default thresholds values will be computed
and this object updated as soon as it is linked in an assessment. new("thresholds", optionValues)
Create a thresholds, containing the thresholds values defined by
optionValues
. The slot noOfOptions
is automatically updated. optionValues
:numeric
Values of the thresholds, if
optionValues
has length zero then the default thresholds values must be used. noOfOptions
:numeric
Number of thresholds. "featureSelectionOptions"
, directly.getNoThresholds(thresholds)
getOptionValues(thresholds)
, getOptionValues(thresholds)<-
geneSubsets
, assessment
# Empty thresholds, the default values will be used when added to an assessment
emptThresholds <- new("thresholds")
getOptionValues(emptThresholds)
getNoThresholds(emptThresholds)
# Another thresholds
thresholds <- new("thresholds", optionValues=c(0,0.1,0.2,1,2))
getOptionValues(thresholds)
getNoThresholds(thresholds)
# Set the thresholds
newThresholds <- c(0.1,0.2,0.5,0.6,1)
getOptionValues(thresholds) <- newThresholds
getOptionValues(thresholds)
getNoThresholds(thresholds)
Run the code above in your browser using DataLab