UNPKG

@cornerstonejs/core

Version:
4 lines (3 loc) 91 B
export const logit = (y, wc, ww) => { return wc - (ww / 4) * Math.log((1 - y) / y); };