This is a static copy of a profile report

Home

select (98 calls, 0.000 sec)
Generated 15-Mar-2007 12:01:43 using real time.
M-function in file c:\mind07\select.m
[Copy to new window for comparing multiple runs]

Parents (calling functions)

Function NameFunction TypeCalls
build_thoughtM-function9
see_mind_picM-function1
delete_generator_connectionsM-function4
connect_down_bondM-function5
delete_generator_connections_2M-function21
add_generator_up_QM-function26
add_generator_newM-function18
build_thought_2M-function8
legacyM-function6
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
3
r=length(probs);
980.000 s100.0%
4
number=1+sum(rand(1)>cumsum...
980 s0%
Other lines & overhead  0 s0%
Totals  0.000 s100% 
Children (called functions)
No children
M-Lint results
Line numberMessage
3The value assigned here to variable 'r' might never be used.
Coverage results
[ Show coverage for parent directory ]
Total lines in file4
Non-code lines (comments, blank lines)2
Code lines (lines that can run)2
Code lines that did run2
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
   time   calls  line
1 function number=select(probs)
2 %selects at random integer from 1 to length(probs) with probabilities in "probs"
< 0.01 98 3 r=length(probs);
98 4 number=1+sum(rand(1)>cumsum(probs));