Skip to content

Commit

Permalink
(add) api ref
Browse files Browse the repository at this point in the history
  • Loading branch information
statefb committed Jul 8, 2019
1 parent 8f7f757 commit 46bb085
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 29 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[![Documentation Status](https://readthedocs.org/projects/dtwalign/badge/?version=latest)](https://dtwalign.readthedocs.io/en/latest/?badge=latest)

Comprehensive dynamic time warping module for python.
Documentation is [available via ReadTheDocs](https://dtwalign.readthedocs.io/en/latest/index.html).

## Installation
```
Expand Down
11 changes: 11 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
====
API Reference
====

.. toctree::
:maxdepth: 1

modules/dtw
modules/result
modules/step_pattern
modules/window
5 changes: 0 additions & 5 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ Installation
pip install dtwalign
```

Fast computation
----------------

by [Numba](https://numba.pydata.org)

.. toctree::
:maxdepth: 2
:caption: Contents:
Expand Down
7 changes: 7 additions & 0 deletions docs/modules/dtw.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
===
DTW
===

.. automodule:: dtwalign.dtw
:members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/modules/result.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
======
Result
======

.. automodule:: dtwalign.result
:members:
:undoc-members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/modules/step_pattern.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
=============
Step patterns
=============

.. automodule:: dtwalign.step_pattern
:members:
:undoc-members:
:show-inheritance:
8 changes: 8 additions & 0 deletions docs/modules/window.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
=======
Windows
=======

.. automodule:: dtwalign.window
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
Tutorial
========

TODO
47 changes: 23 additions & 24 deletions dtwalign/dtw.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
# -*- coding: utf-8 -*-
"""A complehensive dynamic time warping package.
The MIT License (MIT)
Copyright (c) 2018 statefb.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
"""
# A complehensive dynamic time warping package.

# The MIT License (MIT)

# Copyright (c) 2018 statefb.

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.

import numpy as np
from scipy.spatial.distance import cdist
Expand Down

0 comments on commit 46bb085

Please sign in to comment.