removed mut prob balancing

This commit is contained in:
Max Robinson
2021-11-28 13:31:33 -06:00
parent de24aa509e
commit 00875df083
3 changed files with 16 additions and 42 deletions

View File

@@ -29,24 +29,6 @@ const Hyperparams = {
this.foodDropProb = 0;
},
balanceMutationProbs : function(choice) {
if (choice == 1) {
var remaining = 100 - this.addProb;
this.changeProb = remaining/2;
this.removeProb = remaining/2;
}
else if (choice == 2) {
var remaining = 100 - this.changeProb;
this.addProb = remaining/2;
this.removeProb = remaining/2;
}
else {
var remaining = 100 - this.removeProb;
this.changeProb = remaining/2;
this.addProb = remaining/2;
}
}
}
Hyperparams.setDefaults();