]> AND Private Git Repository - Cipher_code.git/blob - Chaotic_code/supboxvector2.m
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
34acd0989c2dadfd3284619d3e4ea577915ddce2
[Cipher_code.git] / Chaotic_code / supboxvector2.m
1 function x=supboxvector2(x,Q,p)\r
2 % r=1 for each parameters\r
3 y=zeros(1,Q);\r
4 for i=1:length(p)\r
5 %for w=1:r\r
6 dinf=find (x<=p(1,i));\r
7 dsup=find (x>p(1,i));\r
8 y(dinf)=ceil((Q*x(dinf))./p(1,i));\r
9 y(dsup)=floor((Q*(Q-x(dsup)))./(Q-p(1,i)))+1;  \r
10 x=y;\r
11 %end\r
12 end\r