package owl

  1. Overview
  2. Docs
OCaml Scientific and Engineering Computing

Install

dune-project
 Dependency

Authors

Maintainers

Sources

owl-1.0.2.tbz
sha256=38d210ce6c1c2f09631fd59951430e4f364b5ae036c71ed1b32ce559b2a29263
sha512=c468100556445384b9c6adad9c37b5a9b8c27db8be35f61979e65fafa88c60221b8bda0a9c06cfbbc8d4e216a1ed08a315dfefb45bb4f5f15aa82d4358f57567

doc/owl/Owl_signal/index.html

Module Owl_signalSource

Signal: Fundamental Signal Processing functions.

Basic window functions

Sourceval blackman : int -> Owl_dense.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.

Sourceval hamming : int -> Owl_dense.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.

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

Sourceval freqz : ?n:int -> ?whole:bool -> float array -> float array -> Owl_dense.Ndarray.D.arr * Owl_dense.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.