summaryrefslogtreecommitdiffstats
path: root/hawkes/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'hawkes/main.py')
-rw-r--r--hawkes/main.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/hawkes/main.py b/hawkes/main.py
index 40993a1..bc319cc 100644
--- a/hawkes/main.py
+++ b/hawkes/main.py
@@ -34,17 +34,6 @@ def iter_events(events):
yield (n, t)
-def ll_old(lamb, alpha, mu):
- r1 = sum(log(lamb + sum(alpha * w * mu * exp(-mu * (t1 - t2))
- for (n2, t2, w) in s))
- for ((n1, t1), s) in event_edges.iteritems())
- r2 = sum(sum(alpha * w * (1 - exp(-mu * (nodes[n2] - t1)))
- for n2, w in edges[n1].iteritems() if nodes[n2] > t1)
- for (n1, t1) in iter_events(events))
- r3 = lamb * sum(nodes.itervalues())
- return -(r1 - r2 - r3)
-
-
def ll(lamb, alpha, mu):
r1 = sum(log(lamb * (1 + 0.43 * sin(0.0172 * t1 + 4.36))
+ sum(alpha / d * mu * exp(-mu * (t1 - t2))