Skip to content

Commit dd6506f

Browse files
committed
add scipy license for the ricker function
1 parent 0ee54ef commit dd6506f

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

wfdb/processing/qrs.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,6 +1778,43 @@ def gqrs_detect(
17781778
return np.array([a.time for a in annotations])
17791779

17801780

1781+
# This function includes code from SciPy, which is licensed under the
1782+
# BSD 3-Clause "New" or "Revised" License.
1783+
# The original code can be found at:
1784+
# https://github.com/scipy/scipy/blob/v1.14.0/scipy/signal/_wavelets.py#L316-L359
1785+
1786+
# Copyright (c) 2001-2002 Enthought, Inc. 2003, SciPy Developers.
1787+
# All rights reserved.
1788+
1789+
# Redistribution and use in source and binary forms, with or without
1790+
# modification, are permitted provided that the following conditions
1791+
# are met:
1792+
1793+
# 1. Redistributions of source code must retain the above copyright
1794+
# notice, this list of conditions and the following disclaimer.
1795+
1796+
# 2. Redistributions in binary form must reproduce the above
1797+
# copyright notice, this list of conditions and the following
1798+
# disclaimer in the documentation and/or other materials provided
1799+
# with the distribution.
1800+
1801+
# 3. Neither the name of the copyright holder nor the names of its
1802+
# contributors may be used to endorse or promote products derived
1803+
# from this software without specific prior written permission.
1804+
1805+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1806+
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1807+
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1808+
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1809+
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1810+
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1811+
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1812+
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1813+
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1814+
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1815+
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1816+
1817+
17811818
def ricker(points, a):
17821819
"""
17831820
Return a Ricker wavelet, also known as the "Mexican hat wavelet".

0 commit comments

Comments
 (0)