This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// OverlapSaveConvolver: A small C++11 single-file program that performs | |
// efficient 1D convolution and cross-correlation of two float arrays. | |
// Copyright (C) 2017 Andres Fernandez (https://github.com/andres-fr) | |
// This program is free software; you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation; either version 3 of the License, or | |
// (at your option) any later version. | |
// This program is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
""" | |
HSV image histogram script. | |
""" | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
""" | |
Wiener deconvolution study. | |
Copyright (C) 2021 aferro (ORCID: 0000-0003-3830-3595) | |
This program is free software: you can redistribute it and/or modify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/env/bin python | |
# -*- coding:utf-8 -*- | |
""" | |
Interactive plot for visual inspection: | |
Complex vectors are plotted as lines on a 3D space, such that 2 dimensions are | |
the real and imaginary components, and the third dimension goes through the | |
vector values (could be e.g. time or frequency). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jax.numpy as jnp | |
from jax import jit, value_and_grad | |
from jax.config import config | |
config.update("jax_debug_nans", True) | |
class RegularInv1dSampler: | |
""" | |
This regular inverse sampler deals with the following problem: given a | |
smooth function ``y=f(x)`` for ``x`` scalar and ``y`` n-dimensional, | |
retrieve ``N`` monotonically increasing values of ``x``, such that the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
""" | |
""" | |
import librosa | |
import numpy as np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin python | |
# -*- coding:utf-8 -*- | |
""" | |
""" | |
import numpy as np | |
import h5py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/env/bin python | |
# -*- coding:utf-8 -*- | |
""" | |
This module extracts salsa-related features on-the-fly (CPU). | |
Inspired by the original SALSA implementation: | |
github.com/thomeou/SALSA/blob/master/dataset/salsa_lite_feature_extraction.py | |
(MIT License) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
""" | |
Most existing breadth-first search implementations provide a solution to | |
*traverse* a tree, but they don't *return* that specific tree. This module | |
provides a tree datastructure and BFS implementation to obtain the BFS tree. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interactive_gpu() | |
{ | |
# needed by getopt: https://stackoverflow.com/a/5048356 | |
local OPTIND | |
# default parameter values | |
seconds=300 | |
partition="large" | |
# parse flags to optionally override param defaults |