This takes a model and uses the XH component to define the eirpr relationship using `xde_scaling_eir` then calls `xde_scaling_lambda`

pr2Lambda(pr, model, constrain = TRUE)

Arguments

pr

a vector

model

a list that defines an `ramp.xde` model (*e.g.*, generated by `xde_setup()`)

constrain

a logical, if TRUE then set all negative values to zero