fix copy&paste errors
This commit is contained in:
parent
b802ca54c2
commit
cca532e502
@ -4,17 +4,17 @@ class CoronaModel extends Model {
|
||||
constructor() {
|
||||
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"]],
|
||||
[[["I1", "S"], ["I2", "E"], 0.15],
|
||||
[[["I1", "S"], ["I1", "E"], 0.15],
|
||||
[["I2", "S"], ["I2", "E"], 0.05],
|
||||
[["I3", "S"], ["I3", "E"], 0.05],
|
||||
["E", "I1", 0.2],
|
||||
["I1", "I2", 0.03],
|
||||
["I2", "I3", 0.04],
|
||||
["I3", "D", 0.25],
|
||||
["I1", "R", 0.13],
|
||||
["I2", "R", 0.13],
|
||||
["I3", "R", 0.12]],
|
||||
1, 0.01);
|
||||
["E", "I1", 1.0/5.0],
|
||||
["I1", "I2", 0.2/6.0],
|
||||
["I2", "I3", 0.25/6.0],
|
||||
["I3", "D", 0.02/8.0],
|
||||
["I1", "R", 0.8/6.0],
|
||||
["I2", "R", 0.75/6.0],
|
||||
["I3", "R", 0.98/8.0]],
|
||||
1, 0.001);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -121,10 +121,10 @@ class Custom extends Model {
|
||||
//override render
|
||||
render() {
|
||||
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}
|
||||
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>
|
||||
{this.buildSlidersDistribution()}
|
||||
</div>);
|
||||
|
||||
@ -4,7 +4,7 @@ class SEIRSModel extends Model {
|
||||
constructor() {
|
||||
super("SEIRS-Model",
|
||||
[["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],
|
||||
["I", "R", 0.5],
|
||||
["R", "S", 0.5]],
|
||||
|
||||
@ -4,7 +4,7 @@ class SIModel extends Model {
|
||||
constructor() {
|
||||
super("SI-Model",
|
||||
[["S", 0.9, "#0FA75F"], ["I", 0.1, "#ff225b"]],
|
||||
[[["S", "I"],["I", "I"], 0.5]],
|
||||
[[["I", "S"],["I", "I"], 0.5]],
|
||||
20, 0.05);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user