source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/test_sample.m
@
177
Last change on this file since 177 was 37, checked in by , 15 years ago | |
---|---|
|
|
File size: 204 bytes |
Line | |
---|---|
1 | d = 10; |
2 | p = rand(d,1); |
3 | ns = ceil(10.^linspace(0,4,20)); |
4 | for i = 1:length(ns) |
5 | n = ns(i); |
6 | tic |
7 | for iter = 1:10 |
8 | x = sample(p,n); |
9 | end |
10 | tim(i) = toc; |
11 | end |
12 | loglog(ns,tim,'-',ns,tim,'.'); |
Note: See TracBrowser
for help on using the repository browser.