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
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
80<br />
x11=x';<br />
nn=size(x11);<br />
n=nn(1,1);<br />
nw=5;<br />
Iact=I(3001:5000)-B % Expected value of future current,<br />
% without any shift, <strong>for</strong> the purpose of RMS value comparison.<br />
%calculate dictionary of all words. The dictionary is d<br />
f=0;<br />
%w=word length<br />
<strong>for</strong> w=1:nw<br />
<strong>for</strong> s=1:n-w+1<br />
c=zeros(w,1);<br />
c(1:w)=x11(s:s+w-1);<br />
f=f+1;<br />
d(f,1:w)=(c(1:w))';<br />
end<br />
end<br />
% Count the occurrence of each word, call this kount<br />
kount=ones(f,1);<br />
% delete duplicate rows of dictionary and kount<br />
r=1;<br />
while r