Hi All--I have a matrix with plenty of zeroes, and I am trying to work with elements above a cutoff percentile--and that percentile is defined among the strictly positive elements. For example: perldl> p $test=oddmedover($slice) 22 perldl> $a=sequence(10,5)
perldl> p $x=oddpctover($a,.5) [4 14 24 34 44] perldl> $slice=$a->where($a>$x->dummy) perldl> $slice.=0 perldl> p $a [ [ 0 1 2 3 4 0 0 0 0 0] [10 11 12 13 14 0 0 0 0 0] [20 21 22 23 24 0 0 0 0 0] [30 31 32 33 34 0 0 0 0 0] [40 41 42 43 44 0 0 0 0 0] ] ################# So I can use oddpctover to get the median value of each row unconditionally--how would I repeat that procedure on this censored matrix (i.e. $x from above would return 2,12,22,32,42)? Thanks, Steve
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
