Revision 23:633ec097fa56 Induction.cpp
| Induction.cpp | ||
|---|---|---|
| 23 | 23 |
int Induction::topN = 10; |
| 24 | 24 |
|
| 25 | 25 |
|
| 26 |
AgentList Induction::beatInduction(EventList events) {
|
|
| 26 |
AgentList Induction::beatInduction(AgentParameters params, EventList events) {
|
|
| 27 | 27 |
int i, j, b, bestCount; |
| 28 | 28 |
bool submult; |
| 29 | 29 |
int intervals = 0; // number of interval clusters |
| ... | ... | |
| 183 | 183 |
while (beat > maxIBI) // Minimum speed |
| 184 | 184 |
beat /= 2.0; |
| 185 | 185 |
if (beat >= minIBI) {
|
| 186 |
a.push_back(new Agent(beat)); |
|
| 186 |
a.push_back(new Agent(params, beat));
|
|
| 187 | 187 |
} |
| 188 | 188 |
} |
| 189 | 189 |
#ifdef DEBUG_BEATROOT |
Also available in: Unified diff