summaryrefslogtreecommitdiffstats
path: root/hawkes/data.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2015-09-14 19:10:35 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2015-09-14 19:10:35 -0400
commit0cd7df0103230be0b73f888a6b5553440ef40d03 (patch)
tree081e1e4a4682656a52eb739549e71a24b0c2073c /hawkes/data.py
parentee158d02d92c597a35bc2e8704a85989a547f0e4 (diff)
downloadcriminal_cascades-0cd7df0103230be0b73f888a6b5553440ef40d03.tar.gz
Small tweak which might help with numerical precision
Diffstat (limited to 'hawkes/data.py')
-rw-r--r--hawkes/data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/hawkes/data.py b/hawkes/data.py
index e5c33f8..5f68dd1 100644
--- a/hawkes/data.py
+++ b/hawkes/data.py
@@ -14,7 +14,7 @@ def parse(s):
def fluctuation_int(t):
if t is None:
t = MAX_TIME
- return t + 0.43 / 0.0172 * (cos(4.36) - cos(0.0172 * t + 4.36))
+ return (t, t + 0.43 / 0.0172 * (cos(4.36) - cos(0.0172 * t + 4.36)))
def load_nodes(filename):