-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSimulationSettings.java
95 lines (72 loc) · 1.92 KB
/
SimulationSettings.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package com.salathegroup.contagion_vs_homophily;
public class SimulationSettings {
private static SimulationSettings ourInstance = new SimulationSettings();
private int numberOfPeople = 5000;
private int k = 10;
private double rewiringProbability = 0.10;
private double rge = 0.001;
private int T = 2;
private double omega = 0.01;
private int ySpan = 1000;
private double assortativity = 0.5;
private double endThreshold = 0.995;
public static SimulationSettings getInstance() {
return ourInstance;
}
private SimulationSettings() {
}
public double getEndThreshold() {
return endThreshold;
}
public void setEndThreshold(double endThreshold) {
this.endThreshold = endThreshold;
}
public double getAssortativity() {
return assortativity;
}
public void setAssortativity(double assortativity) {
this.assortativity = assortativity;
}
public int getNumberOfPeople() {
return numberOfPeople;
}
public void setNumberOfPeople(int numberOfPeople) {
this.numberOfPeople = numberOfPeople;
}
public int getYspan() {
return ySpan;
}
public void setYspan(int ySpan) {
this.ySpan = ySpan;
}
public int getK() {
return k;
}
public void setK(int k) {
this.k = k;
}
public double getRewiringProbability() {
return rewiringProbability;
}
public void setRewiringProbability(double rewiringProbability) {
this.rewiringProbability = rewiringProbability;
}
public double getRge() {
return rge;
}
public void setRge(double rge) {
this.rge = rge;
}
public int getT() {
return T;
}
public void setT(int t) {
T = t;
}
public double getOmega() {
return omega;
}
public void setOmega(double omega) {
this.omega = omega;
}
}