This is a static copy of a profile reportHome
flagRFI_std>stdClip (36 calls, 0.951 sec)
Generated 05-Aug-2011 13:03:48 using cpu time.
subfunction in file /home/LeechJ/cbass_analysis/reduc/flagRFI_std.m
Copy to new window for comparing multiple runs
Parents (calling functions)
Lines where the most time was spent
Line Number | Code | Calls | Total Time | % Time | Time Plot |
548 | dataStdMed = median(dataVec(cl... | 180 | 0.547 s | 57.5% |  |
547 | dataStdStd = std(dataVec(clipV... | 180 | 0.383 s | 40.2% |  |
550 | clipVec = abs(dataVec - medSub... | 180 | 0.011 s | 1.1% |  |
545 | for l=1:nClip | 36 | 0.011 s | 1.1% |  |
555 | end | 36 | 0 s | 0% |  |
All other lines | | | 0 s | 0% |  |
Totals | | | 0.951 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
median | function | 180 | 0.481 s | 50.6% |  |
std | function | 180 | 0.339 s | 35.6% |  |
Self time (built-ins, overhead, etc.) | | | 0.131 s | 13.8% |  |
Totals | | | 0.951 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 22 |
Non-code lines (comments, blank lines) | 12 |
Code lines (lines that can run) | 10 |
Code lines that did run | 10 |
Code lines that did not run | 0 |
Coverage (did run/can run) | 100.00 % |
Function listing
time calls line
534 function clipVec = stdClip(dataVec,thresh,nClip,medSubtract)
535
536 % Either we subtract the median or we don't.
36 537 if medSubtract ~= 0
24 538 medSubtract = 1;
24 539 end
540
541 % Initialize the clip vector.
36 542 clipVec = zeros(length(dataVec),1);
543
544 % Do the clipping...
0.01 36 545 for l=1:nClip
546
0.38 180 547 dataStdStd = std(dataVec(clipVec == 0));
0.55 180 548 dataStdMed = median(dataVec(clipVec == 0));
549
0.01 180 550 clipVec = abs(dataVec - medSubtract * dataStdMed) > ...
551 thresh * dataStdStd;
552
180 553 end
554
36 555 end
Other subfunctions in this file are not included in this listing.