Computational tests using the moving window convolution analysis
Related documents
- Convolution analysis for detection purposes concerning the signal’s approximate derivative
- Convolution analysis for detection purposes concerning the signal’s zero-phase FIR filter result
- Convolution analysis for detection purposes concerning the signal’s Hilbert envelope
- Convolution analysis for detection purposes concerning the signal’s matched-filter result
- Convolution analysis for detection purposes concerning a signal and it’s time-delayed version
- Convolution analysis for detection purposes concerning the signal’s moving-window signal-to-noise ratio
Abstract
To temporally localize a signal in a signal stream in noisy environments, it is necessary to identify a suitable transformation that suppresses the noise-floor and amplifies the signal sections. The test aims to determine which combination of input data leads to the highest amplitude ratio between the noise floor and the signal section. This ratio is here referred to as the separation ratio.
[!NOTE]
The entire content of this record was conceived, implemented and tested by Jakob Harden using the scientific numerical programming language of GNU Octave 6.2.0 and TeXlive/TeXStudio.
Table of contents
License
Copyright 2024-2025 Jakob Harden (jakob.harden@tugraz.at, Graz University of Technology, Graz, Austria)
This file is part of the PhD thesis of Jakob Harden.
File licenses:
- main directory (program root directory)
- *.m: GNU Affero General Public License version 3
- directory results/test_movcorr
- *.png, *.ofig: Creative Commons Attribution 4.0 International license
- directory scicol_crameri
- colormap_crameri.m: GNU Affero General Public License version 3
- all other files (*.mat, *.pdf, *.png): by Fabio Crameri et al., MIT license
- directory tools
- *.m: GNU Affero General Public License version 3
All README.md files are licensed under the Creative Commons Attribution 4.0 International license.
Prerequisites
To be able to use the scripts, GNU Octave 6.2.0 (or a higher version) need to to be installed. GNU Octave is available via the package management system on many Linux distributions. Windows users have to download the Windows version of GNU Octave and to install the software manually.
GNU Octave download
To compile the LaTeX documents in this repository a TeXlive installation is required. The TeXlive package is available via the package management system on many Linux distributions. Windows users have to download the Windows version of TeXlive and to install the software manually.
TeXlive download
[!TIP]
TeXStudio is a convinient and powerful solution to edit TeX files!
Directory and file structure
GNU Octave script files (*.m) are written in the scientific programming language of GNU Octave 6.2.0. LaTeX files (*.tex) are written with compliance to TeXlive version 2020.20210202-3. Text files are generally encoded in UTF-8.
comptest_conv_octave/
├── results
│ └── test_movcorr
├── scicol_crameri
│ ├── *.mat
│ ├── *.pdf
│ ├── *.png
│ └── colormap_crameri.m
├── tools
│ ├── tool_det_movcorr_diff.m
│ ├── tool_det_movcorr_firp0.m
│ ├── tool_det_movcorr_henv.m
│ ├── tool_det_movcorr_mflt.m
│ ├── tool_det_movcorr_shift.m
│ ├── tool_det_movcorr_snr.m
│ ├── tool_gen_noise.m
│ ├── tool_moving_corr.m
│ ├── tool_moving_prop.m
│ ├── tool_scale_noise2snr.m
│ └── tool_scale_ramp_prepost.m
├── init.m
├── LICENSE
├── README.md
├── README.html
└── test_movcorr.m
- comptest_conv_octave ... main program directory
- init.m ... function file, initialization script, load packages, add subdirectories to path environment variable
- LICENSE ... AGPLv3 licence information file
- README.md ... this file, information about the program
- README.html ... html version of this file
- test_movcorr.m ... function file, main script, convolution analysis on sinusoidal signals in noise
- scicol_crameri ... directory, scientif colour schemes by Fabio Crameri at al.
- colormap_crameri.m ... function file, load scientific colour schemes, by Jakob Harden (AGPLv3 license)
- *.png, *.mat, *.pdf ... scientific colour schemes and documentation, by Fabio Crameri at al. (MIT license)
- results/test_movcorr ... directory, analysis results and figures (CC BY-4.0)
- *.oct ... file, analysis results, GNU Octave binary format
- *.png ... file, figures, PNG format
- *.ofig ... file, figures, GNU Octave binary format
- tools ... directory, tool scripts (AGPLv3)
- tool_det_movcorr_diff.m ... function file, Evaluate moving-window sums concerning the approximate derivative of the signal
- tool_det_movcorr_firp0.m ... function file, Evaluate moving-window sums concerning the FIR filtered signal (zero-phase, rect.win.)
- tool_det_movcorr_henv.m ... function file, Evaluate moving-window sums concerning the Hilbert envelope
- tool_det_movcorr_mflt.m ... function file, Evaluate moving-window sums concerning the matched-filter result
- tool_det_movcorr_shift.m ... function file, Evaluate moving-window sums concerning the shifted signal
- tool_det_movcorr_snr.m ... function file, Evaluate moving-window sums concerning the moving-window signal-to-noise ratio
- tool_gen_noise.m ... function file, Generate Gaussian white noise matrix and store it in a file (standard noise that allows to reproduce results)
- tool_moving_corr.m ... function file, Evaluate convolution sums with respect to a moving window
- tool_moving_prop.m ... function file, Evaluate signal property with respect to a moving window
- tool_scale_noise2snr.m ... function file, scale noise data w.r.t. signal power and signal-to-noise ratio
- tool_scale_ramp_prepost.m ... function file, Scale signal amplitudes at signal start and end with a ramp function
Installation instructions
- Copy the program directory comptest_conv_octave to a location of your choice. e.g. /home/acme/science/comptest_conv_octave.
- Open GNU Octave.
- Make the program directory /home/acme/science/comptest_conv_octave the working directory.
Usage instructions
- Open GNU Octave.
- Initialize program.
- Run script files.
Initialize program (command line interface)
The init command initializes the program. The initialization must be run once before executing all the other functions. The command is adding the subdirectories included in the main program directory to the 'path' environment variable. Furthermore, init is loading additional GNU Octave packages required for the program execution.
octave: >> init;
Execute function file (command line interface)
octave: >> test_movcorr('pvar'); # run parameter variation (window length, Monte-Carlo test)
octave: >> test_movcorr('stats'); # plot parameter variation stats
octave: >> test_movcorr('ana'); # plot analysis example
octave: >> test_movcorr('sig'); # plot signal example
[!NOTE]
To reproduce the analysis results shown in the presentations referenced in section Related Publications, run all above-mentioned commands.
Help and Documentation
All function files contain an adequate function description and instructions on how to use the functions. The documentation can be displayed in the GNU Octave command line interface by entering the following command:
octave: >> help function_file_name;
Related publications
Presentations
The presentations showing the analysis results and figures compiled with this program code are available in the Graz University of Technology repository.
- Harden, J. (2025) "Convolution analysis for detection purposes concerning the signal’s approximate derivative". Graz University of Technology. DOI: 10.3217/erzqj-nv306
- Harden, J. (2025) "Convolution analysis for detection purposes concerning the signal’s zero-phase FIR filter result". Graz University of Technology. DOI: 10.3217/xpwne-xt280
- Harden, J. (2025) "Convolution analysis for detection purposes concerning the signal’s Hilbert envelope". Graz University of Technology. DOI: 10.3217/d53w6-p6x08
- Harden, J. (2025) "Convolution analysis for detection purposes concerning the signal’s matched-filter result". Graz University of Technology. DOI: 10.3217/qb3tb-3mj71
- Harden, J. (2025) "Convolution analysis for detection purposes concerning a signal and it’s time-delayed version". Graz University of Technology. DOI: 10.3217/jq0es-9rq47
- Harden, J. (2025) "Convolution analysis for detection purposes concerning the signal’s moving-window signal-to-noise ratio". Graz University of Technology. DOI: 10.3217/pzzad-af253
LaTeX code
The LaTeX code used to compile the above-mentioned presentations is also available in the Graz University of Technology repository.
- Harden, J. (2025) "Convolution analysis for detection purposes; computational tests on sinusoidal signals in noise - supplementary LaTeX code". Graz University of Technology. DOI: 10.3217/jnzct-cvp41
Scientific colour maps
The colours used in the illustrations are based on the scientific colour maps designed by Fabio Crameri et al. The colour map definitions and the related documentation are licensed under the MIT license and were made available online. Please find a copy of those colour maps in the scicol_crameri directory.
- Crameri Fabio, et al. "Scientific colour maps". Zenodo
Revision and release history
2025-04-16, version 1.0.0