Skip to content

Commit

Permalink
Hio koodidokumentaatiota
Browse files Browse the repository at this point in the history
  • Loading branch information
ollpu committed May 16, 2021
1 parent 98f3564 commit 4191215
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/correlation_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl CorrelationMatch {
/// the period of the signal is also returned as the second item in the tuple. This can be used
/// to compute the fundamental frequency of the signal.
///
/// All arrays must be less than the maximum size given on `new`.
/// No array should exceed the maximum size given on `new`.
pub fn compute(&mut self, a: &[Num], b: &[Num], w: &[Num]) -> (Num, Option<Num>) {
assert!(a.len() <= self.max_size);
assert!(b.len() <= a.len());
Expand Down
4 changes: 3 additions & 1 deletion src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ impl DisplayBuffer {
///
/// The `memory_decay` and `period_decay` parameters determine the decay coefficient of the
/// memory buffer, and the interval average respectively:
/// `average = coeff * new + (1. - coeff) * average;`
/// ```none
/// average = coeff * new + (1. - coeff) * average;
/// ```
/// Set to `1.0` to bypass smoothing.
///
/// [`update_display`](Self::update_display) should be called separately to update the display buffer.
Expand Down
Empty file modified suorituskyky/plot_parametrized_comparison.py
100755 → 100644
Empty file.

0 comments on commit 4191215

Please sign in to comment.