Skip to content

Commit

Permalink
Paranna koodidokumentaatiota
Browse files Browse the repository at this point in the history
  • Loading branch information
ollpu committed Apr 17, 2021
1 parent c23894b commit 3c6d560
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/correlation_match.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Finds the closest match of a shorter piece of audio from a larger piece of audio.
//!
//! Design sketch in Finnish:
//!
//! Algoritmi, joka etsii pidemmästä äänenpätkästä A sen kohdan, jossa
Expand Down Expand Up @@ -27,6 +29,7 @@
use crate::cross_correlation::CrossCorrelation;
use crate::math::*;

/// A structure prepared to perform correlation matches up to a given size.
pub struct CorrelationMatch {
max_size: usize,
cross_correlation: CrossCorrelation,
Expand Down
1 change: 1 addition & 0 deletions src/cross_correlation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use crate::fft;
use crate::math::*;
use std::array::IntoIter;

/// A structure prepared to perform cross correlations up to a given maximum size.
pub struct CrossCorrelation {
base_size: usize,
fft_size: usize,
Expand Down
2 changes: 1 addition & 1 deletion src/fft.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! This module implements the FFT, i.e. Fast Fourier Transform, and its inverse.
//! Implements the FFT, i.e. Fast Fourier Transform, and its inverse.
use crate::math::*;

Expand Down
4 changes: 2 additions & 2 deletions src/math.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! This module defines mathematical structures and operations, primarily relating
//! to complex numbers.
//! Defines mathematical structures and operations, primarily relating to complex
//! numbers.
// The project is being worked on, and not all operations defined in this file are
// used anywhere yet. Therefore we allow "dead code".
Expand Down

0 comments on commit 3c6d560

Please sign in to comment.