-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a735e6f
commit 14f4f64
Showing
3 changed files
with
44 additions
and
13 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
(* | ||
* OWL - OCaml Scientific and Engineering Computing | ||
* Copyright (c) 2021 Chandra Shekhar <[email protected]>, Kumar Appaiah <[email protected]> | ||
*) | ||
|
||
(** Signal: Fundamental Signal Processing functions. *) | ||
|
||
open Owl_dense | ||
|
||
(** {Basic window functions} *) | ||
|
||
val blackman : int -> Ndarray.D.arr | ||
(** Blackman window is a taper formed by using the first three terms of a summation of cosines. It was designed to have close to the minimal leakage possible. | ||
``blackman m`` returns a blackman window. | ||
*) | ||
|
||
val hamming : int -> Ndarray.D.arr | ||
(** Hamming window is a taper formed by using a raised cosine with non-zero endpoints, optimized to minimize the nearest side lobe. ``hamming m`` | ||
returns a hamming window. | ||
*) | ||
|
||
|
||
val hann : int -> Ndarray.D.arr | ||
(** Hann window is a taper formed by using a raised cosine or sine-squared with ends that touch zero. ``hann m`` | ||
returns a hann window. | ||
*) | ||
|
||
(** {Filter response function} *) | ||
|
||
val freqz : ?n:int -> ?whole:bool -> float array -> float array -> Ndarray.D.arr * Ndarray.Z.arr | ||
(** freqz computes the frequency response of a digital filter. | ||
``freqz b a`` computes the frequency response of digital filter with numerator filter coeffecient given by ``b`` (float array) while the denominator filter coeffecient given by ``a`` (float array), and returns the frequencies and the frequency response respectively in real and complex ndarrays. Two optional parameters may be specified: ``n`` is an integer that determines the number of frequencies where the frequency response is to be evaluated, and ``whole`` is a boolean that decides whether the frequency response is two-sided or one-sided. Default values of ``n`` and ``whole`` are 512 and false. | ||
*) | ||
|
||
(*ends here*) |
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