summaryrefslogtreecommitdiffstats
path: root/hawkes/main.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2015-09-14 17:08:20 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2015-09-14 17:08:20 -0400
commitee158d02d92c597a35bc2e8704a85989a547f0e4 (patch)
tree8ce32e0e53629426adfd1cb5898ec309c8c85533 /hawkes/main.py
parent4222c3cb6a0e1de8b1f2568ae5674920bfa573eb (diff)
downloadcriminal_cascades-ee158d02d92c597a35bc2e8704a85989a547f0e4.tar.gz
Getting read of old stuff
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))