Learn R Programming

BayesianFROC (version 1.0.0)

hits_rate_creator: MRMC Hit Rates Creator from Thresholds, Mean and S.D.

Description

From thresholds, data of hit rate are created.

Note that the return values has changed from \(p\) (in R notation:ppp) to

$$hit rate_c := \frac{p_c(\theta)}{1- p_C(\theta)-p_{C-1}(\theta)- ... - p_{c+1}(\theta)} $$

Usage

hits_rate_creator(
  z.truth = BayesianFROC::z_truth,
  mu.truth = BayesianFROC::mu_truth,
  v.truth = BayesianFROC::v_truth,
  is_hit_rate_adjusted = FALSE
)

Arguments

z.truth

Vector of dimension = C represents the thresholds of bi-normal assumption.

mu.truth

array of dimension (M,Q). Mean of the signal distribution of bi-normal assumption.

v.truth

array of dimension (M,Q). Standard Deviation of represents the signal distribution of bi-normal assumption.

is_hit_rate_adjusted

whether the return value is a vector of $$p_c(\theta)$$ or $$hit rate_c := \frac{p_c(\theta)}{1- p_C(\theta)-p_{C-1}(\theta)- ... - p_{c+1}(\theta)} $$.

The former is the default (FALSE) and the later is returned if is_hit_rate_adjusted=TRUE.

Value

A vector of the hit rate:

$$hit rate_c := \frac{p_c(\theta)}{1- p_C(\theta)-p_{C-1}(\theta)- ... - p_{c+1}(\theta)} $$

Do not confuse the old version ppp which is an array with three indices: ppp[C,M,Q].

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
#================The first example======================================

#     Using default values for hit rates, we can create a data of hits as follows:

        hits.rate <-hits_rate_creator()

#================The second example======================================

#     Using the hit rate from the hits_rate_creator(), we can get the hits data:

        hits_creator_from_rate(p.truth =hits_rate_creator() )

#================The remark for example======================================

# The author does not show how to specify the hit rates or threshods.
# For the details of it, please see the default values of such a quantities.


#================The 4-th example======================================

    p.truth.array <- hits_rate_creator()



#========================================================================================
#2019 Sept 6
#========================================================================================







# }
# NOT RUN {
# dottest

# }

Run the code above in your browser using DataLab