1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
ProbGroup contains Group data (ranges of double values like ages (with
(breast) Densities), like
// BreastDensities:
//
// # bi-rad: a b c d
// ageGroup: 0 - 40: .05 .30 .48 .17
// ageGroup: 40 - 50: .06 .34 .47 .13
or tumor diameters (with lung cancer survival data), like the Survival's S3
matrix:
S3:
# T-row range N0,M0 N1-3,M0 N1-3,M1a-b N0-3M1c
prob: 0 - 21: .8186 .0333 .0832 .0709 // T1a,b
prob: 21 - 31: .6626 .0474 .1566 .1334 // T1c
The remaining values are probabilities, interpreted as cumulative probs. E.g.,
for the 2nd S3 row: the 1st column is used for all probabilities <= .6626,
the 2nd column for probabilites > .6626 and <= (.6626 + .0474).
Each row defines one ProbGroup, and the static member
probIndexOf(Vector, value, prob)
determines the vector element whose group range contains 'value' and then
returns the index in the vector of that element's four probabilities
containing 'prob'
|