Function for calculating the critical success index.
csi(x, ref, th)
x
a data.table generated by fldmean
fldmean
ref
a data.table with data used for evaluation
th
numeric. The value for detection threshold
numeric