Modifs
This commit is contained in:
		@@ -1,3 +1,2 @@
 | 
			
		||||
D = csvRead('data.csv');
 | 
			
		||||
DD = csvRead('data.csv',',','.','string');
 | 
			
		||||
genre = DD(:,3);
 | 
			
		||||
csvDouble = csvRead("data.csv")                         //ouvre data.csv en une matrice d'entier
 | 
			
		||||
csvString = csvRead("data.csv",[],[],'string')          //ouvre data.csv en une matrice de string
 | 
			
		||||
@@ -1,4 +1,2 @@
 | 
			
		||||
age = D(:, 2);
 | 
			
		||||
min_age = min(age); 
 | 
			
		||||
max_age = max(age);  
 | 
			
		||||
histplot(41,age);
 | 
			
		||||
ages = tabul(csvDouble(:,2))
 | 
			
		||||
bar(ages(:,1),ages(:,2))
 | 
			
		||||
@@ -1,4 +1,2 @@
 | 
			
		||||
exp = D(:,6);
 | 
			
		||||
min_xp = min(exp);
 | 
			
		||||
max_xp = max(exp);
 | 
			
		||||
histplot(34,exp);
 | 
			
		||||
exp = tabul(csvDouble(:,6))
 | 
			
		||||
bar(exp(:,1),exp(:,2))
 | 
			
		||||
@@ -0,0 +1,12 @@
 | 
			
		||||
mean(csvDouble(:,2))        //moyenne
 | 
			
		||||
min(csvDouble(:,2))         //min
 | 
			
		||||
max(csvDouble(:,2))         //max
 | 
			
		||||
median(csvDouble(:,2))      //médianne
 | 
			
		||||
quart(csvDouble(:,2))       //quartile
 | 
			
		||||
iqr(csvDouble(:,2))         //interquartile
 | 
			
		||||
stdev(csvDouble(:,2))       //ecart-type
 | 
			
		||||
 | 
			
		||||
age = tabul(csvDouble(:,2))
 | 
			
		||||
[occurence_tri,indice_tri] = gsort(age(:,2))
 | 
			
		||||
liste_age = age(:,1)
 | 
			
		||||
mode = liste_age(35)        //mode
 | 
			
		||||
@@ -1 +1,8 @@
 | 
			
		||||
boxplot(age);
 | 
			
		||||
// Installation de stibox
 | 
			
		||||
atomsInstall("stixbox")
 | 
			
		||||
 | 
			
		||||
// Lancement de stibox
 | 
			
		||||
atomsLoad("stixbox")
 | 
			
		||||
 | 
			
		||||
// Utilisation de stibox
 | 
			
		||||
boxplot(csvDouble(:,2),"whisker",0.25,"orientation","horizontal")
 | 
			
		||||
@@ -1,15 +1,16 @@
 | 
			
		||||
Q = quart(exp) 
 | 
			
		||||
IQR = Q(3) - Q(1)
 | 
			
		||||
min_xp = min(exp); 
 | 
			
		||||
max_xp = max(exp); 
 | 
			
		||||
mean(exp)
 | 
			
		||||
median(exp)
 | 
			
		||||
mean(csvDouble(:,6))        //moyenne
 | 
			
		||||
min(csvDouble(:,6))         //min
 | 
			
		||||
max(csvDouble(:,6))         //max
 | 
			
		||||
median(csvDouble(:,6))      //médianne
 | 
			
		||||
quart(csvDouble(:,6))       //quartile
 | 
			
		||||
iqr(csvDouble(:,6))         //interquartile
 | 
			
		||||
stdev(csvDouble(:,6))       //ecart-type
 | 
			
		||||
 | 
			
		||||
Unique_vals = unique(exp);
 | 
			
		||||
Freq = histc(exp, Unique_vals);
 | 
			
		||||
[max_Freq, max_Index] = max(Freq);
 | 
			
		||||
exp_mode = Unique_vals(max_Index);
 | 
			
		||||
exp = tabul(csvDouble(:,6))
 | 
			
		||||
[occurence_tri,indice_tri] = gsort(exp(:,2))
 | 
			
		||||
liste_exp = exp(:,1)
 | 
			
		||||
mode = liste_exp(33)        //mode
 | 
			
		||||
 | 
			
		||||
stdev(exp)
 | 
			
		||||
 | 
			
		||||
boxplot(exp);
 | 
			
		||||
atomsInstall("stixbox")
 | 
			
		||||
atomsLoad("stixbox")
 | 
			
		||||
boxplot(csvDouble(:,6),"whisker",0.25,"orientation","horizontal")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user