This is a static copy of a profile reportHome
fitOneOverF>residual (146226 calls, 18.690 sec)
Generated 05-Aug-2011 13:03:54 using cpu time.
nested function in file /home/LeechJ/cbass_analysis/reduc/fitOneOverF.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 |
84 | logFitSpectrum=log(oneOverFSpe... | 146226 | 14.362 s | 76.8% |  |
86 | r=sum(difference .* difference... | 146226 | 1.432 s | 7.7% |  |
85 | difference = (logFitSpectrum -... | 146226 | 0.590 s | 3.2% |  |
93 | end | 146226 | 0.514 s | 2.7% |  |
87 | if (y(2)<0 || y(2)>fs) | 146226 | 0.142 s | 0.8% |  |
All other lines | | | 1.650 s | 8.8% |  |
Totals | | | 18.690 s | 100% | |
Children (called functions)
Function Name | Function Type | Calls | Total Time | % Time | Time Plot |
fitOneOverF>oneOverFSpectrum | subfunction | 146226 | 11.269 s | 60.3% |  |
Self time (built-ins, overhead, etc.) | | | 7.421 s | 39.7% |  |
Totals | | | 18.690 s | 100% | |
Code Analyzer results
Coverage results
[ Show coverage for parent directory ]
Total lines in function | 11 |
Non-code lines (comments, blank lines) | 1 |
Code lines (lines that can run) | 10 |
Code lines that did run | 6 |
Code lines that did not run | 4 |
Coverage (did run/can run) | 60.00 % |
Function listing
time calls line
83 function r = residual(y)
14.36 146226 84 logFitSpectrum=log(oneOverFSpectrum(f,y));
0.59 146226 85 difference = (logFitSpectrum - logP) - 0.5772156649015328606065;
1.43 146226 86 r=sum(difference .* difference);
0.14 146226 87 if (y(2)<0 || y(2)>fs)
88 r=r+1e30;
89 end
0.12 146226 90 if (y(3)<0)
91 r=r+1e30;
92 end
0.51 146226 93 end
Other subfunctions in this file are not included in this listing.