Changeset 24 for trunk/src/indice_flore
- Timestamp:
- 01/07/09 16:49:58 (15 years ago)
- Location:
- trunk/src/indice_flore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/indice_flore/time_serie_histog.m
r23 r24 27 27 % on ouvre le fichier 28 28 status=load('occu.txt'); 29 occu=status; 30 clear status; 29 31 30 32 % on reorganise le fichier de type de temps (jours,annees,cluster) … … 147 149 if a==1; 148 150 bar(jour,diff,'r'); 149 c=[1 0.55 0];150 bar(jour,diff),colormap(c);151 c=[1 0.55 0]; 152 bar(jour,diff),colormap(c); 151 153 elseif a==2; 152 154 bar(jour,diff,'g'); … … 155 157 else 156 158 bar(jour,diff,'r'); 157 end 159 end; 158 160 set (gca,'XTick',[-10:10],'XTickLabel',[-10:10],'fontname','Arial','fontsize',6); 159 161 set (gca,'YTick',[-40:20:40],'YTickLabel',[-40:20:40],'fontname','Arial','fontsize',6); … … 169 171 title('Blocking','Fontsize',8,'Fontname','Arial'); 170 172 end; 171 end 173 end; 172 174 173 175 figure(1); 174 status=print('-depsc2','time_serie_type_tps_pb.eps');176 print('-depsc2','time_serie_type_tps_pb.eps'); -
trunk/src/indice_flore/time_serie_histog3.m
r23 r24 21 21 22 22 for a=1:3538; 23 ind_olr(a)=(ind_olr(a)-olr_moy)/olr_std;23 ind_olr(a)=(ind_olr(a)-olr_moy)/olr_std; 24 24 end; 25 25 ind_olr=reshape(ind_olr,122,29); … … 28 28 % on ouvre le fichier 29 29 status=load('occu.txt'); 30 occu=status; 31 clear status; 30 32 31 33 % on reorganise le fichier de type de temps (jours,annees,cluster) … … 44 46 45 47 % boucle sur les annees 46 for a=1:29 48 for a=1:29; 47 49 clear delta; 48 50 delta=zeros(122,1); 49 51 % boucle sur les jours 50 for b=1:122 52 for b=1:122; 51 53 if b>1; 52 54 delta(b)=ind_olr(b,a)-ind_olr(b-1,a); … … 55 57 for b=1:122; 56 58 % 1ere condition (laisser une marge de 10) 57 if (b>11 && b<112) ;59 if (b>11 && b<112) 58 60 % condition 1 on est a un maximum deltas apres sont negetifs et 59 61 % delta avant postifs … … 218 220 y=type_temps_compomax(1:sizemax,a,b); 219 221 student1(a,b)=ttest(x,y); 220 end 221 end 222 223 222 end; 223 end; 224 224 225 225 % on fait la somme des types de temps sur toute la periode de temps … … 256 256 table_ttest(a,b)=NaN; 257 257 end; 258 end 259 end 258 end; 259 end; 260 260 for a=1:4; 261 261 subplot(2,2,a); … … 280 280 hold on; 281 281 plot(jour,diff2,'k*'); 282 end 282 end; 283 283 set (gca,'XTick',[-10:10],'XTickLabel',[-10:10],'fontname','Arial','fontsize',6); 284 284 set (gca,'YTick',[-40:20:40],'YTickLabel',[-40:20:40],'fontname','Arial','fontsize',6); … … 294 294 title('Frequence Blocking (filtre PB) Differences min - max Seuil 1.5','Fontsize',8,'Fontname','Arial'); 295 295 end; 296 end 296 end; 297 297 298 298 figure(1); 299 status=print('-depsc2','time_serie_type_tps_pb.eps');299 print('-depsc2','time_serie_type_tps_pb.eps'); -
trunk/src/indice_flore/time_serie_histog3_max_moy.m
r23 r24 24 24 25 25 for a=1:3538; 26 ind_olr(a)=(ind_olr(a)-olr_moy)/olr_std;26 ind_olr(a)=(ind_olr(a)-olr_moy)/olr_std; 27 27 end; 28 28 ind_olr=reshape(ind_olr,122,29); 29 29 30 %%%%%%%%%%%% FICHIER TYPE DE TEMPS 30 31 % on ouvre le fichier 31 32 status=load('occu.txt'); 33 occu=status; 34 clear status; 32 35 33 36 % on reorganise le fichier de type de temps (jours,annees,cluster) … … 46 49 47 50 % boucle sur les annees 48 for a=1:29 51 for a=1:29; 49 52 clear delta; 50 53 delta=zeros(122,1); 51 54 % boucle sur les jours 52 for b=1:122 55 for b=1:122; 53 56 if b>1; 54 57 delta(b)=ind_olr(b,a)-ind_olr(b-1,a); … … 223 226 y=type_temps_compomax(1:sizemax,a,b); 224 227 student1(a,b)=ttest(x,y); 225 end 226 end 227 228 end; 229 end; 228 230 229 231 % on fait la somme des types de temps sur toute la periode de temps … … 258 260 for b=1:4 259 261 kara_diff(a,b)=-kara_max(a,b)+kara_moy(b); 260 end 261 end 262 end; 263 end; 262 264 263 265 table_ttest=zeros(21,4); … … 269 271 table_ttest(a,b)=NaN; 270 272 end; 271 end 272 end 273 end; 274 end; 273 275 274 276 for a=1:4; … … 282 284 hold on; 283 285 plot(jour,diff2,'k*'); 284 286 elseif a==2; 285 287 bar(jour,diff,'g'); 286 287 288 hold on; 289 plot(jour,diff2,'k*'); 288 290 elseif a==3; 289 291 bar(jour,diff,'b'); … … 294 296 hold on; 295 297 plot(jour,diff2,'k*'); 296 end 298 end; 297 299 set (gca,'XTick',[-10:10],'XTickLabel',[-10:10],'fontname','Arial','fontsize',6); 298 300 set (gca,'YTick',[-20:5:20],'YTickLabel',[-20:5:20],'fontname','Arial','fontsize',6); … … 308 310 title('Blocking','Fontsize',8,'Fontname','Arial'); 309 311 end; 310 end 312 end; 311 313 312 314 figure(1); 313 status=print('-depsc2','time_serie_type_tps_max_moy_pb.eps');315 print('-depsc2','time_serie_type_tps_max_moy_pb.eps'); -
trunk/src/indice_flore/time_serie_histog3_min_moy.m
r23 r24 25 25 for a=1:3538; 26 26 ind_olr(a)=(ind_olr(a)-olr_moy)/olr_std; 27 end 27 end; 28 28 ind_olr=reshape(ind_olr,122,29); 29 29 … … 31 31 % on ouvre le fichier 32 32 status=load('occu.txt'); 33 occu=status; 34 clear status; 33 35 34 36 % on reorganise le fichier de type de temps (jours,annees,cluster) … … 58 60 for b=1:122; 59 61 % 1ere condition (laisser une marge de 10) 60 if (b>11 && b<112) ;62 if (b>11 && b<112) 61 63 % condition 1 on est a un maximum deltas apres sont negetifs et 62 64 % delta avant postifs … … 239 241 for b=1:4 240 242 kara_diff(a,b)=kara_min(a,b)-kara_moy(b); 241 end 242 end 243 end; 244 end; 243 245 244 246 for a=1:4; … … 256 258 else 257 259 bar(jour,diff,'r'); 258 end 260 end; 259 261 set (gca,'XTick',[-10:10],'XTickLabel',[-10:10],'fontname','Arial','fontsize',6); 260 262 set (gca,'YTick',[-20:5:20],'YTickLabel',[-20:5:20],'fontname','Arial','fontsize',6); … … 270 272 title('Blocking','Fontsize',8,'Fontname','Arial'); 271 273 end; 272 end 274 end; 273 275 274 276 figure(1); 275 status=print('-depsc2','time_serie_type_tps_min_moy_pb.eps');277 print('-depsc2','time_serie_type_tps_min_moy_pb.eps');
Note: See TracChangeset
for help on using the changeset viewer.