dsc: Calculate Sørensen's-Dice

Description Usage Arguments Value Examples

View source: R/dsc.R

Description

Calculate Sørensen's-Dice between two vectors or NIFTIs

Usage

1
dsc(gold_standard, comp_method)

Arguments

gold_standard

a binary 0,1 vector or nifti object to compare

comp_method

a binary 0,1 vector or nifti object to compare

Value

Returns single Sørensen's-Dice calculation. Should be between 0 and 1.

Examples

1
2
3
4
5
## Not run: 
gold_standard = c(1,0,1,0,1,0,0)
comp_method =c(0,0,1,0,1,0,0)
dsc(gold_standard = gold_standard, comp_method = comp_method)
## End(Not run)

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