SAE_2.04/EXO2/scripts/q3.sce

12 lines
413 B
Scilab
Raw Permalink Normal View History

2024-06-12 20:45:45 +02:00
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
2024-06-16 18:16:00 +02:00
age = tabul(csvDouble(:,2));
[occurence_tri,indice_tri] = gsort(age(:,2));
liste_age = age(:,1);
mode = liste_age(indice_tri(1)) //mode