comments added

--HG--
branch : sandbox
This commit is contained in:
Andreas
2009-07-15 20:56:27 +00:00
parent 5b743f08b6
commit 1e172971e3

View File

@@ -1,8 +1,12 @@
# Copyright (c) 2008 Andreas Balogh # Copyright (c) 2009 Andreas Balogh
# See LICENSE for details. # See LICENSE for details.
''' '''
online bottom up Online bottom-up
1. segment tick data with a sliding window alogrithm
2. recognise low/high points by comparing slope information
3. recognise trend by observing low/high point difference
''' '''
# system imports # system imports
@@ -250,7 +254,7 @@ class DelayedAcp:
class TopDownLoHi: class TopDownLoHi:
'''Time series high & low detector.''' '''Douglas-Peucker algorithm.'''
def __init__(self, bias): def __init__(self, bias):
assert(bias > 0) assert(bias > 0)
self.bias = bias self.bias = bias