Skip to content
Snippets Groups Projects
Commit 0b97a01f authored by Laurie Boffelli's avatar Laurie Boffelli
Browse files

ajouts de 4 patients sains (HTN188,241,250,263)

parent f3400a9d
No related branches found
No related tags found
No related merge requests found
% build dynamics model (part 1) % build dynamics model (part 1)
%modele A %modele A
Y=load('../ListeDesVolumes.txt'); Y=load('../ListeDesVolumes.txt');
y_training=zeros(192,1)%zeros(210,1); y_training=zeros(232,1);%zeros(210,1);%zeros(192,1)
C=xlsread('../points courbes.xls') C=xlsread('../points_courbes.xls');
% on normalise les patients % on normalise les patients
J=1; J=1;
I=1; I=1;
ymax_training=Y; ymax_training=Y;
ymax_training=zeros(18,1); ymax_training=zeros(22,1);
while (I<=18); while (I<=22);
% on cherche le max du patient % on cherche le max du patient
J=1; J=1;
while (J<=25); while (J<=25);
...@@ -33,7 +33,7 @@ end ...@@ -33,7 +33,7 @@ end
J=1; J=1;
I=1; I=1;
i=1; i=1;
while (I<=18); while (I<=22);
J=1; J=1;
while (J<C(I,1)); while (J<C(I,1));
y_training(i,1)=Y(J,I); y_training(i,1)=Y(J,I);
...@@ -47,7 +47,7 @@ Y_training = y_training; ...@@ -47,7 +47,7 @@ Y_training = y_training;
%creation de X_training %creation de X_training
k=1; k=1;
X_training=[]; X_training=[];
while k<=18 while k<=22
X=[0:1/(C(k,1)-1):1]; X=[0:1/(C(k,1)-1):1];
X_training = [X_training, X]; X_training = [X_training, X];
k=k+1; k=k+1;
......
No preview for this file type
% build dynamics model (part 1) % build dynamics model (part 1)
%modele B1 %modele B1
Y=load('../ListeDesVolumes.txt'); Y=load('../ListeDesVolumes.txt');
y_training=zeros(127,1)%zeros(145,1); y_training=zeros(159,1)%zeros(145,1);%zeros(127,1)
C=xlsread('../points courbes.xls') C=xlsread('../points_courbes.xls');
% on normalise les patients % on normalise les patients
J=1; J=1;
I=1; I=1;
ymax_training=Y; ymax_training=Y;
ymax_training=zeros(18,1); ymax_training=zeros(22,1);
while (I<=18); while (I<=22);
% on cherche le max du patient % on cherche le max du patient
J=1; J=1;
while (J<=25); while (J<=25);
...@@ -33,7 +33,7 @@ end ...@@ -33,7 +33,7 @@ end
J=1; J=1;
I=1; I=1;
i=1; i=1;
while (I<=18); %on parcourt tout les patients while (I<=22); %on parcourt tout les patients
J=C(I,1); %on prend que la premiere colonne du .xls J=C(I,1); %on prend que la premiere colonne du .xls
if C(I,3)>0 %si le patient a un plateau if C(I,3)>0 %si le patient a un plateau
while (J<C(I,3)); %on parcourt tout les éléments de la 3ieme colonnes J in 1:element troisieme col while (J<C(I,3)); %on parcourt tout les éléments de la 3ieme colonnes J in 1:element troisieme col
...@@ -55,7 +55,7 @@ Y_training = y_training; ...@@ -55,7 +55,7 @@ Y_training = y_training;
%creation de X_training %creation de X_training
k=1; k=1;
X_training=[]; X_training=[];
while k<=18 while k<=22
if C(k,3)>0 if C(k,3)>0
X=[0:1/(C(k,3)-C(k,1)):1]; X=[0:1/(C(k,3)-C(k,1)):1];
X_training = [X_training, X]; X_training = [X_training, X];
......
No preview for this file type
% build dynamics model (part 1) % build dynamics model (part 1)
%modele B2 %le vrai %modele B2 %le vrai
Y=load('../ListeDesVolumes.txt'); Y=load('../ListeDesVolumes.txt');
y_training=zeros(73,1)%zeros(88,1); y_training=zeros(88,1);%zeros(88,1);zeros(73,1)
C=xlsread('../points courbes.xls') C=xlsread('../points_courbes.xls');
% on normalise les patients % on normalise les patients
J=1; J=1;
I=1; I=1;
ymax_training=Y; ymax_training=Y;
ymax_training=zeros(18,1); ymax_training=zeros(22,1);
while (I<=18); while (I<=22);
% on cherche le max du patient % on cherche le max du patient
J=1; J=1;
while (J<=25); while (J<=25);
...@@ -33,7 +33,7 @@ end ...@@ -33,7 +33,7 @@ end
J=1; J=1;
I=1; I=1;
i=1; i=1;
while (I<=18); while (I<=22);
J=C(I,3); J=C(I,3);
if C(I,3)>0 if C(I,3)>0
while (J<C(I,2)); while (J<C(I,2));
...@@ -49,7 +49,7 @@ Y_training = y_training; ...@@ -49,7 +49,7 @@ Y_training = y_training;
%creation de X_training %creation de X_training
k=1; k=1;
X_training=[]; X_training=[];
while k<=18 while k<=22
if C(k,3)>0 if C(k,3)>0
X=[0:1/(C(k,2)-C(k,3)):1]; X=[0:1/(C(k,2)-C(k,3)):1];
X_training = [X_training, X]; X_training = [X_training, X];
......
No preview for this file type
% build dynamics model (part 1) % build dynamics model (part 1)
%modele C %modele C
Y=load('../ListeDesVolumes.txt'); Y=load('../ListeDesVolumes.txt');
y_training=zeros(58,1); y_training=zeros(71,1);%zeros(58,1);
C=xlsread('../points courbes.xls') C=xlsread('../points_courbes.xls');
% on normalise les patients % on normalise les patients
J=1; J=1;
I=1; I=1;
ymax_training=Y; ymax_training=Y;
ymax_training=zeros(18,1); ymax_training=zeros(22,1);
while (I<=18); while (I<=22);
% on cherche le max du patient % on cherche le max du patient
J=1; J=1;
while (J<=25); while (J<=25);
...@@ -33,7 +33,7 @@ end ...@@ -33,7 +33,7 @@ end
J=1; J=1;
I=1; I=1;
i=1; i=1;
while (I<=18); while (I<=22);
J=C(I,2); J=C(I,2);
while (J<=25); while (J<=25);
y_training(i,1)=Y(J,I); y_training(i,1)=Y(J,I);
...@@ -47,7 +47,7 @@ Y_training = y_training; ...@@ -47,7 +47,7 @@ Y_training = y_training;
%creation de X_training %creation de X_training
k=1; k=1;
X_training=[]; X_training=[];
while k<=18 while k<=22
X=[0:1/(25-C(k,2)):1]; X=[0:1/(25-C(k,2)):1];
X_training = [X_training, X]; X_training = [X_training, X];
k=k+1; k=k+1;
......
No preview for this file type
This diff is collapsed.
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment