fix copy&paste errors

This commit is contained in:
JuliusHerrmann 2022-01-19 17:14:46 +01:00
parent b802ca54c2
commit cca532e502
4 changed files with 13 additions and 13 deletions

View File

@ -4,17 +4,17 @@ class CoronaModel extends Model {
constructor() { constructor() {
super("Corona-Model", super("Corona-Model",
[["S", 0.830, "#1F85DE"], ["E", 0.1, "#010061"], ["I1", 0.005, "#de1f50"], ["I2", 0.005, "#b91fde"], ["I3", 0.005, "#1fdea7"], ["R", 0.005, "#8fde1f"], ["V", 0.005, "#de801f"], ["D", 0.005, "#3b0b0b"]], [["S", 0.830, "#1F85DE"], ["E", 0.1, "#010061"], ["I1", 0.005, "#de1f50"], ["I2", 0.005, "#b91fde"], ["I3", 0.005, "#1fdea7"], ["R", 0.005, "#8fde1f"], ["V", 0.005, "#de801f"], ["D", 0.005, "#3b0b0b"]],
[[["I1", "S"], ["I2", "E"], 0.15], [[["I1", "S"], ["I1", "E"], 0.15],
[["I2", "S"], ["I2", "E"], 0.05], [["I2", "S"], ["I2", "E"], 0.05],
[["I3", "S"], ["I3", "E"], 0.05], [["I3", "S"], ["I3", "E"], 0.05],
["E", "I1", 0.2], ["E", "I1", 1.0/5.0],
["I1", "I2", 0.03], ["I1", "I2", 0.2/6.0],
["I2", "I3", 0.04], ["I2", "I3", 0.25/6.0],
["I3", "D", 0.25], ["I3", "D", 0.02/8.0],
["I1", "R", 0.13], ["I1", "R", 0.8/6.0],
["I2", "R", 0.13], ["I2", "R", 0.75/6.0],
["I3", "R", 0.12]], ["I3", "R", 0.98/8.0]],
1, 0.01); 1, 0.001);
} }
} }

View File

@ -121,10 +121,10 @@ class Custom extends Model {
//override render //override render
render() { render() {
return(<div> return(<div>
<h3>Enter the rules like: <code>("S","I",0.1), (("I","S"),("I","I"),0.3)</code></h3> <h3>Enter the rules like: <code>("I","S",0.1), (("I","S"),("I","I"),0.3)</code></h3>
<textarea className="CustomInput CustomModel" type="text" onChange={this.textFieldChanged} <textarea className="CustomInput CustomModel" type="text" onChange={this.textFieldChanged}
value={this.state.input} required pattern="[[(]'?[\w\d]+'?,'?[\w\d]+'?,([0-9]*[.])?[0-9]+[)\]][\s\t]*|[([][([]('?[\w\d]+'?,)+'?[\w\d]+'?[\])],[([]('?[\w\d]+'?,)+'?[\w\d]+'?[\])],([0-9]*[.])?[0-9]+[\])][\s\t]*" value={this.state.input} required pattern="[[(]'?[\w\d]+'?,'?[\w\d]+'?,([0-9]*[.])?[0-9]+[)\]][\s\t]*|[([][([]('?[\w\d]+'?,)+'?[\w\d]+'?[\])],[([]('?[\w\d]+'?,)+'?[\w\d]+'?[\])],([0-9]*[.])?[0-9]+[\])][\s\t]*"
placeholder='("S","I",0.1), (("I","S"),("I","I"),0.3)'/> placeholder='("I","S",0.1), (("I","S"),("I","I"),0.3)'/>
<h3 id="selectDistributionHeader">Initial Distribution</h3> <h3 id="selectDistributionHeader">Initial Distribution</h3>
{this.buildSlidersDistribution()} {this.buildSlidersDistribution()}
</div>); </div>);

View File

@ -4,7 +4,7 @@ class SEIRSModel extends Model {
constructor() { constructor() {
super("SEIRS-Model", super("SEIRS-Model",
[["E", 0.03, "#1F85DE"], ["I", 0.03, "#de1f50"], ["R", 0.03, "#b91fde"], ["S", 0.91, "#1fdea7"]], [["E", 0.03, "#1F85DE"], ["I", 0.03, "#de1f50"], ["R", 0.03, "#b91fde"], ["S", 0.91, "#1fdea7"]],
[[["S", "I"], ["I", "E"], 0.5], [[["I", "S"], ["I", "E"], 0.5],
["E", "I", 0.5], ["E", "I", 0.5],
["I", "R", 0.5], ["I", "R", 0.5],
["R", "S", 0.5]], ["R", "S", 0.5]],

View File

@ -4,7 +4,7 @@ class SIModel extends Model {
constructor() { constructor() {
super("SI-Model", super("SI-Model",
[["S", 0.9, "#0FA75F"], ["I", 0.1, "#ff225b"]], [["S", 0.9, "#0FA75F"], ["I", 0.1, "#ff225b"]],
[[["S", "I"],["I", "I"], 0.5]], [[["I", "S"],["I", "I"], 0.5]],
20, 0.05); 20, 0.05);
} }
} }