Testing Agent Behavior
241
Clustered Instances
0
125 ( 25%)
1
57 ( 11%)
2
73 ( 15%)
3
157 ( 31%)
4
89 ( 18%)
Log likelihood: -32.3838
The code was altered to add an anomaly in the code for allowing wrong
values of Mcat to be generated.
//within the cell divide function
if(temp<0.01)
{
if(MCAT==3)
{
if(temp2<0.01)
{
MCAT=3;
}
else if(temp2<0.51)
{
MCAT=2;
}
else if(temp2<0.98)
{
MCAT=1;
}
else //wrong conditions added
{
MCAT=4;
}
}
The simulation was executed again with the wrong code to see if this is
detected from the data collected. The output is as follows:
=== Run information ===
Scheme:weka.clusterers.EM -I 100 -N -1 -M 1.0E-6 -S 100
Relation:
superimposed2results
Instances:
501
Attributes:
6
itno
cell_number
normal
attacked by drug a
attacked by drug b
nohope-resistant to both
241
Clustered Instances
0
125 ( 25%)
1
57 ( 11%)
2
73 ( 15%)
3
157 ( 31%)
4
89 ( 18%)
Log likelihood: -32.3838
The code was altered to add an anomaly in the code for allowing wrong
values of Mcat to be generated.
//within the cell divide function
if(temp<0.01)
{
if(MCAT==3)
{
if(temp2<0.01)
{
MCAT=3;
}
else if(temp2<0.51)
{
MCAT=2;
}
else if(temp2<0.98)
{
MCAT=1;
}
else //wrong conditions added
{
MCAT=4;
}
}
The simulation was executed again with the wrong code to see if this is
detected from the data collected. The output is as follows:
=== Run information ===
Scheme:weka.clusterers.EM -I 100 -N -1 -M 1.0E-6 -S 100
Relation:
superimposed2results
Instances:
501
Attributes:
6
itno
cell_number
normal
attacked by drug a
attacked by drug b
nohope-resistant to both
