Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hippke committed Mar 20, 2020
1 parent 19028f4 commit b66f3a6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/Usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,30 @@ which returns something like:
lightcurve was split into 2 segments
nsplines [19. 26.]

To determine the distance between the knots in each segment, you can run

::

from wotan.gaps import get_gaps_indexes
segs = get_gaps_indexes(time, break_tolerance=break_tolerance)
segs[-1] -= 2 # remove endpoint padding
durations = []
for seg in range(len(segs)-1):
start = time[segs[seg]]
stop = time[segs[seg+1]-1]
duration = stop - start
durations.append(duration)
print(start, stop, duration)
print('Segment durations', durations)
print('Time between knots', durations / nsplines)

which prints something like:

::

Segment durations [7.54, 12.25, 12.14, 12.33]
Time between knots [0.25 0.27 0.21 0.16]



Lowess / Loess
Expand Down

0 comments on commit b66f3a6

Please sign in to comment.