-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve #8: added exhaustive list of random processes from chapter 3.
- Loading branch information
mahdi
committed
Nov 23, 2023
1 parent
42d4bbc
commit 8431f24
Showing
2 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,57 @@ | ||
"""Chapter 3, stochastic systems.""" | ||
|
||
|
||
import random | ||
from collections.abc import Generator | ||
from typing import NoReturn | ||
|
||
|
||
def arma(p: int, q: int, process: None | Generator = None) -> NoReturn: | ||
class RandomProcess(random.Random): | ||
"""Random process base class.""" | ||
|
||
|
||
def arma(p: int, q: int, N: int, process: None | Generator = None) -> NoReturn: | ||
"""Auto-regressive Moving-Average.""" | ||
raise NotImplementedError() | ||
|
||
|
||
def ar(p: int, process: None | Generator = None) -> NoReturn: | ||
def ar(p: int, N: int, process: None | Generator = None) -> NoReturn: | ||
"""Auto-regressive.""" | ||
raise NotImplementedError() | ||
|
||
|
||
def ma(q: int, process: None | Generator = None) -> NoReturn: | ||
"""Moving Average.""" | ||
def ma(q: int, N: int, process: None | Generator = None) -> NoReturn: | ||
"""Moving Average Random (stochastic) process.""" | ||
raise NotImplementedError() | ||
|
||
|
||
def harmonic(A: int, process: None | Generator = None) -> NoReturn: | ||
"""The harmonic random process.""" | ||
raise NotImplementedError() | ||
|
||
|
||
def white_noise(variance: float) -> NoReturn: | ||
"""The harmonic random process. | ||
Page 93. | ||
""" | ||
raise NotImplementedError() | ||
|
||
|
||
def white_gaussian_noise() -> NoReturn: | ||
"""A random process consisting of a sequence of uncorrelated real-valued Gaussian random | ||
variables. | ||
Page 94. | ||
""" | ||
raise NotImplementedError() | ||
|
||
|
||
def bernoulli() -> NoReturn: | ||
"""The Bernoulli process consists of a sequence of uncorrelated Bernoulli variables (-1, 1). | ||
Page 94. | ||
""" | ||
raise NotImplementedError() |