Learn R Programming

BayesianFROC (version 1.0.0)

z_from_dz: Thresholds from its difference

Description

Thresholds are created from its differece

$$z[1] = w $$ $$z[2] = z[1]+ (z[2]-z[1] ) $$ $$z[3] = z[1]+ (z[2]-z[1] )+(z[3]-z[2]) $$ $$z[4] = z[1]+ (z[2]-z[1] )+(z[3]-z[2])+(z[4]-z[3]) $$

Usage

z_from_dz(w, dz)

Arguments

w

a real number, indicating the first threshold

dz

a vector of real numbers, indicating the difference of thresholds

Value

A vector of real numbers

Examples

Run this code
# NOT RUN {
z_from_dz(1,c(2,3))

z_from_dz(1,c(0.2,0.03))

z_from_dz(1,c(0.2,0.03,0.004))




  dz <-runif(3,    # sample size
             0.01, # lower bound
             1     # upper bound
             )


  w  <- rnorm(1,
              0,
              1
              )

  z_from_dz(w,dz  )





# }

Run the code above in your browser using DataLab