Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
"""A demonstration of Fundamental Frequency Estimation Based on FOHCDE.
Copyright (C) 2025 by Akira TAMAMORI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@tam17aki
tam17aki / scde_demo.py
Last active June 2, 2025 23:16
A demonstration of Frequency Estimation Based on SCDE.
# -*- coding: utf-8 -*-
"""A demonstration of Frequency Estimation Based on SCDE.
Copyright (C) 2025 by Akira TAMAMORI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
#!/bin/bash
CURDIR=$(cd $(dirname $0);pwd)
LOGDIR=${CURDIR}/log
mkdir -p ${LOGDIR}
HOPNET=hopnet_dynamics_logistic.py
PYTHON=$(which python)
# -*- coding: utf-8 -*-
"""A demonstration script of Hopfield Network to evaluate dynamics of recall process.
Copyright (C) 2025 by Akira TAMAMORI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
#!/bin/bash
CURDIR=$(cd $(dirname $0);pwd)
LOGDIR=${CURDIR}/log
mkdir -p ${LOGDIR}
HOPNET=hopnet_dynamics.py
PYTHON=$(which python)
@tam17aki
tam17aki / hopnet_dynamics.py
Last active February 27, 2025 05:33
A demonstration Python script of Hopfield Network to evaluate dynamics of recall process.
# -*- coding: utf-8 -*-
"""A demonstration script of Hopfield Network to evaluate dynamics of recall process.
Copyright (C) 2025 by Akira TAMAMORI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@tam17aki
tam17aki / hopnet_dynamics.c
Last active February 21, 2025 09:42
A demonstration of Hopfield Network to evaluate dynamics of recall process.
/* *****************************************************************************
A demonstration of Hopfield Network to evaluate dynamics of recall process.
Copyright (C) 2025 by Akira TAMAMORI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@tam17aki
tam17aki / gsl_pinv.c
Last active February 15, 2025 17:07
A demonstration for calculating pseudo-inverse matrix using the GNU Scientific Library (GSL).
/* *****************************************************************************
A demonstration for calculating pseudo-inverse matrix using the GNU Scientific
Library (GSL).
Copyright (C) 2025 by Akira TAMAMORI
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 2 of the License, or (at your option) any later
version.
# -*- coding: utf-8 -*-
"""A script to plot similarities.
Copyright (C) 2025 by Akira TAMAMORI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
#!/bin/bash
CURDIR=$(cd $(dirname $0);pwd)
LOGDIR=${CURDIR}/log
mkdir -p ${LOGDIR}
SOURCE=hopnet_dynamics.c
TARGET=hopnet_dynamics
CFLAGS="-Ofast -Wall"