This is a static copy of a profile report

Home

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)

Function NameFunction TypeCalls
flagRFI_stdfunction36
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
548
dataStdMed = median(dataVec(cl...
1800.547 s57.5%
547
dataStdStd = std(dataVec(clipV...
1800.383 s40.2%
550
clipVec = abs(dataVec - medSub...
1800.011 s1.1%
545
for l=1:nClip
360.011 s1.1%
555
end
360 s0%
All other lines  0 s0%
Totals  0.951 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
medianfunction1800.481 s50.6%
stdfunction1800.339 s35.6%
Self time (built-ins, overhead, etc.)  0.131 s13.8%
Totals  0.951 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function22
Non-code lines (comments, blank lines)12
Code lines (lines that can run)10
Code lines that did run10
Code lines that did not run0
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.