02.06.2014 Views

symbolic dynamic models for highly varying power system loads

symbolic dynamic models for highly varying power system loads

symbolic dynamic models for highly varying power system loads

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

83<br />

<strong>for</strong> jj=1:f<br />

if(d(jj,2:nw)==0)<br />

minx(kk,:)=d(jj,:);<br />

minfr(kk,:)=frac_occ(jj,:);<br />

len(kk,:)=1;<br />

end<br />

kk=kk+1;<br />

end<br />

end<br />

min=[minx,minfr,len]; % Mini dictionary of all the matching %<br />

symbols/sequences<br />

wtfr=minfr.*(len.^2); % Weight the fractional occurrence of % each word<br />

above by the square of its length.<br />

sm=sum(wtfr(:,1));<br />

newfr=wtfr/sm;<br />

cfr=cumsum(newfr);<br />

sz=size(minx);<br />

f1=sz(1);<br />

r=rand;<br />

if (r=cfr(i))&(r

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!