CONSTRAIN Get a subset of op.points based on performance constraints R2=CONSTRAIN(R,measure,constraint,...) [R2,IND]=CONSTRAIN(R,measure,constraint,...) INPUT R SDROC object measure measure definition (index or name such as 'err(apple)') constraints scalar constraint value OUTPUT R2 SDROC subset fulfilling all constraints or empty IND Indices of the R2 subset in R DESCRIPTION CONSTRAIN method applies one or more constraints on the estimated measures. The measures may be specified by their index or by name. For each measure we only need to provide scalar value, the polarity is chosen automatically (errors are minimized, performances maximized). EXAMPLES r2=constrain(r,'TPr(banana)',0.8) r2=constrain(r,'TPr(banana)',0.8,'error(fruit)',0.3)
