Get the fraction of sensors in the state corresponding to "Rmax" (wrapper)

# S4 method for Sensor
getProperty(object, ...)

Arguments

object

A sensor object

...

...

Value

A single number of numeric vector of the fraction of sensors in the maximum-emission state corresponding to the given R

Examples

my_sensor <- new("Sensor", Rmin = 1, Rmax = 5, delta = 0.5) getFractionMax(my_sensor, R = 1)
#> [1] 0
getFractionMax(my_sensor, R = 3)
#> [1] 0.6666667
getFractionMax(my_sensor, R = 5)
#> [1] 1