Skip to content

Commit

Permalink
some cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdi committed Nov 22, 2023
1 parent 1580796 commit 17c47e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ContinuousTesting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Static Type Check
run: |
mypy pyssp --explicit-package-bases
mypy pyssp
- name: Test
run: |
Expand Down
20 changes: 10 additions & 10 deletions pyssp/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
from typing import NoReturn

import numpy as np
import numpy.typing as npt
from numpy.typing import ArrayLike


def convm(x: npt.ArrayLike, p: int) -> npt.NDArray[np.float64]:
def convm(x: ArrayLike, p: int) -> np.ndarray:
"""Construct the convolution matrix of the signal x with p number of parameters.
(N + p - 1) by p non-symmetric Toeplitz matrix
Expand All @@ -27,7 +27,7 @@ def convm(x: npt.ArrayLike, p: int) -> npt.NDArray[np.float64]:
return X


def covar(x: npt.ArrayLike, p: int) -> np.ndarray:
def covar(x: ArrayLike, p: int) -> np.ndarray:
"""Covariance Matrix.
p x p hermitian toeplitz matrix of sample covariances
Expand All @@ -40,36 +40,36 @@ def covar(x: npt.ArrayLike, p: int) -> np.ndarray:
return R


def normalprony(x: npt.ArrayLike, p: int, q: int) -> NoReturn:
def normalprony(x: ArrayLike, p: int, q: int) -> NoReturn:
"""Normalized prony Systems of Equations."""
raise NotImplementedError()


def ywe(x: npt.ArrayLike, p: int, q: int) -> NoReturn:
def ywe(x: ArrayLike, p: int, q: int) -> NoReturn:
"""Yuler-Walker Systems of Equations."""
raise NotImplementedError()


def nywe(x: npt.ArrayLike, p: int, q: int) -> NoReturn:
def nywe(x: ArrayLike, p: int, q: int) -> NoReturn:
"""Normalized Yuler-Walker Systems of Equations."""
raise NotImplementedError()


def mywe(x: npt.ArrayLike, p: int, q: int) -> NoReturn:
def mywe(x: ArrayLike, p: int, q: int) -> NoReturn:
"""Modified Yuler-Walker Systems of Equations."""
raise NotImplementedError()


def eywe(x: npt.ArrayLike, p: int, q: int) -> NoReturn:
def eywe(x: ArrayLike, p: int, q: int) -> NoReturn:
"""Extended Yuler-Walker Systems of Equations."""
raise NotImplementedError()


def normaldeterministic(x: npt.ArrayLike, p: int, q: int) -> NoReturn:
def normaldeterministic(x: ArrayLike, p: int, q: int) -> NoReturn:
"""Normal Determenistic Systems of Equations."""
raise NotImplementedError()


def wienerhopf(x: npt.ArrayLike, p: int, q: int) -> NoReturn:
def wienerhopf(x: ArrayLike, p: int, q: int) -> NoReturn:
"""Wiener-Hopf Systems of Equations."""
raise NotImplementedError()

0 comments on commit 17c47e7

Please sign in to comment.