Functions | Variables

resample.m File Reference

Functions

 plot (xQ, Q, 'bo-', xT, T(1:N),'ro-')
while i< N, if Q(j)> T (i+1)
while i< N, if Q(j)> output (i+1)

Variables

Demonstration of resample
algorithm clc 
m
 Q
 T
grid output = zeros(size(m))
 i = 0
 j = 1

Function Documentation

while i<N, if Q(j)> output ( i 1  ) 
plot ( xQ  ,
Q  ,
'bo-'  ,
xT  ,
T(1:N)  ,
'ro-'   
)

Here is the caller graph for this function:

while i<N, if Q(j)> T ( i 1  ) 

Variable Documentation

for i = 0
Examples:
gd_scan.c, and testmap.c.
else j = 1
Examples:
testmap.c.
Demonstration of resample algorithm clc m
Initial value:
[ 1 1 5 1 1] % sample weights
N=length(m)
grid output = zeros(size(m))
Q
Initial value:
[cumsum(m)]
Q = Q./Q(N)
xQ = 1:N
T
Initial value:
cumsum(-log(rand(1, N+1)))
T = T./T(length(T))
xT = 0:N-1