dsc_mult_thresholds: Calculate Sørensen–Dice index for a probability map using...

Description Usage Arguments Value

View source: R/dsc_mult_thresholds.R

Description

Calculates Sørensen–Dice index for a probability map using multiple thresholds

Usage

1
dsc_mult_thresholds(gold_standard, prob_map, thresholds, mask = NULL)

Arguments

gold_standard

A vector or nifti of the gold standard to compare using Sørensen–Dice. Class must match prob_map.

prob_map

A vector or nifti of the probability map to compare at multiple thresholds with the gold_standard. Class must match gold_standard.

thresholds

A vector of thresholds to use on the probability map

mask

NULL by default assumes that gold_standard and prob_map are already vectors. If niftis are supplied then a mask must be provided to vectorize the gold_standard and prob_map.

Value

A tibble with a column of the user-defined thresholds (threshold) and the Sørensen–Dice (dsc) values is returned.


avalcarcel9/aliviateR documentation built on July 10, 2020, 12:32 p.m.