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.
72<br />
s=sum(kount); % total occurance of words in x.<br />
%Y Dictionary (For regenerated data set)<br />
%set max word length<br />
nw1=nw;<br />
%find signal length<br />
nn1=size(y);<br />
n1=nn1(1,1);<br />
%calculate dictionary of all words. The dictionary is d<br />
f1=0;<br />
%w=word length<br />
<strong>for</strong> w1=1:nw1<br />
<strong>for</strong> s1=1:n1-w1+1<br />
c1=zeros(w1,1);<br />
c1(1:w1)=y(s1:s1+w1-1);<br />
f1=f1+1;<br />
d1(f1,1:w1)=(c1(1:w1))';<br />
end<br />
end<br />
d1;<br />
f1;<br />
%count the occurrences of each word, call this kount<br />
kount1=ones(f1,1);<br />
%delete duplicate rows of dictionary and kount<br />
r1=1;<br />
while r1