Skip to content

Commit 78b407c

Browse files
authored
Merge pull request #598 from gpetiot/preview-ocamlformat-0.20.0
upgrade to ocamlformat.0.20.0
2 parents dde7f1e + 24f939c commit 78b407c

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

.ocamlformat

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
version=0.19.0
1+
version=0.20.0
22
profile=janestreet
3-
wrap-comments=false
43
doc-comments=after-when-possible
54
align-cases=true
65
align-constructors-decl

src/owl/signal/owl_signal.mli

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
(*
2-
* OWL - OCaml Scientific and Engineering Computing
3-
* Copyright (c) 2021 Chandra Shekhar <[email protected]>, Kumar Appaiah <[email protected]>
1+
(*
2+
* OWL - OCaml Scientific and Engineering Computing
3+
* Copyright (c) 2021 Chandra Shekhar <[email protected]>, Kumar Appaiah <[email protected]>
44
*)
55

66
(** Signal: Fundamental Signal Processing functions. *)
@@ -10,18 +10,18 @@ open Owl_dense
1010
(** {Basic window functions} *)
1111

1212
val blackman : int -> Ndarray.D.arr
13-
(** 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.
14-
``blackman m`` returns a blackman window.
13+
(** 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.
14+
``blackman m`` returns a blackman window.
1515
*)
1616

1717
val hamming : int -> Ndarray.D.arr
18-
(** Hamming window is a taper formed by using a raised cosine with non-zero endpoints, optimized to minimize the nearest side lobe. ``hamming m``
19-
returns a hamming window.
18+
(** Hamming window is a taper formed by using a raised cosine with non-zero endpoints, optimized to minimize the nearest side lobe. ``hamming m``
19+
returns a hamming window.
2020
*)
2121

2222
val hann : int -> Ndarray.D.arr
23-
(** Hann window is a taper formed by using a raised cosine or sine-squared with ends that touch zero. ``hann m``
24-
returns a hann window.
23+
(** Hann window is a taper formed by using a raised cosine or sine-squared with ends that touch zero. ``hann m``
24+
returns a hann window.
2525
*)
2626

2727
(** {Filter response function} *)
@@ -32,9 +32,9 @@ val freqz
3232
-> float array
3333
-> float array
3434
-> Ndarray.D.arr * Ndarray.Z.arr
35-
(** freqz computes the frequency response of a digital filter.
36-
37-
``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.
35+
(** freqz computes the frequency response of a digital filter.
36+
37+
``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.
3838
*)
3939

4040
(*ends here*)

test/unit_stats_rvs.ml

+4-5
Original file line numberDiff line numberDiff line change
@@ -424,12 +424,10 @@ module RandomTest = struct
424424
in
425425
let _, _ = iter blah 0 in
426426
C.print ~max_col:64 x;
427-
(*
428-
*)
427+
(* *)
429428
let f = Owl.Fft.S.fft x in
430429
C.print ~max_col:64 f;
431-
(*
432-
*)
430+
(* *)
433431
let p = 0.95 in
434432
let q = 1. -. p in
435433
let t2 = float n *. -.log q in
@@ -950,7 +948,8 @@ let test_true_is_not_random _ =
950948
let sampler _ length = length, fun _ -> true in
951949
let tests =
952950
[ bin_frequency, true, 0, 100; bin_block_frequency_7, true, 0, 100
953-
; bin_fft_64, false, 0, 1024; bin_fft_1024, true, 0, 1024
951+
; bin_fft_64, false, 0, 1024
952+
; bin_fft_1024, true, 0, 1024
954953
(* there is one frequency here - expect others randomly to exceed 95% too *) ]
955954
in
956955
run_random_tests test_name pretest sampler tests

0 commit comments

Comments
 (0)