236237238239240241242243244245246247248
if (num_pkb > 0) { DblMatrix transKb = Kw.divideBy(KKb[k]); Ka = Ka.concat(transKb,2); } DblSort Sort = new DblSort(Ka,2); Sort.sort(); Ka = Sort.getSorted(); //Calculate numerator DblMatrix cumProdKa = Ka.cumProd(1); cumProdKa = cumProdKa.fliplr();
239240241242243244245246247248249250251
242243244245246247248249250251252253254
212213214215216217218219220221222223224