Skip to content

Commit

Permalink
Merge branch 'main' of github.com:fraunhoferportugal/tssearch into main
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarandas committed Apr 20, 2022
2 parents 1de2463 + fe60176 commit 22af307
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/descriptions/segmentation_search.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ You will need to define the distance used for segmentation and provide a query a
.. code:: python
import tssearch
import numpy as np
query, weights, sequence = tssearch.examples.get_ecg_example_data()
data = tssearch.load_ecg_example()
cfg = tssearch.get_distance_dict(["Dynamic Time Warping"])
out = tssearch.time_series_segmentation(cfg, query, weights, sequence)
out = tssearch.time_series_segmentation(cfg, data["query"], data["sequence"], data["weight"])
In the code above a ten-second segment from an electrocardiography record is used to define the query and the sequence and the DTW is defined as the distance for the segmentation. Then, the segmentation is calculated and the output is assigned to a variable. The method receives as inputs the configuration file, the query, and the sequence. Additionally, an optional vector input that assigns weights for each time instance of the query is also given as input.

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# (Pseudo) Automatically generated by https://github.com/damnever/pigar.
Sphinx == 1.8.6
jinja2 < 3.1.0
h5py >= 3.6.0
matplotlib >= 3.5.0
numba >= 0.54.1
Expand Down

0 comments on commit 22af307

Please sign in to comment.