Skip to content

Instantly share code, notes, and snippets.

@tam17aki
tam17aki / music_demo.py
Created August 25, 2025 03:21
A demonstration of parameter estimation for sinusoidal signals using the MUSIC algorithm.
# -*- coding: utf-8 -*-
"""A demonstration of parameter estimation for sinusoidal signals.
Frequencies and damping coefficients are estimated using the MUSIC algorithm,
followed by amplitude and phase estimation via the least squares method.
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
@tam17aki
tam17aki / music_param_demo.py
Last active August 21, 2025 08:39
A demonstration of parameter estimation for sinusoidal signals via the MUSIC algorithm and the least squares method.
# -*- coding: utf-8 -*-
"""A demonstration of parameter estimation for sinusoidal signals.
Frequencies are estimated using the MUSIC algorithm, followed by
amplitude and phase estimation via the least squares method.
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
# -*- coding: utf-8 -*-
"""A demonstration of frequency estimation using the MUSIC algorithm.
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
# -*- coding: utf-8 -*-
"""A demonstration of Parameter estimation based on ESPRIT using total least squares.
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 / esprit_tls_demo.py
Last active August 19, 2025 16:03
A demonstration of frequency estimation using the ESPRIT algorithm with total least squares.
# -*- coding: utf-8 -*-
"""A demonstration of Parameter estimation based on ESPRIT using total least squares.
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 / music_demo.py
Last active August 19, 2025 08:51
A demonstration of frequency estimation using the MUSIC algorithm.
# -*- coding: utf-8 -*-
"""A demonstration of frequency estimation using the MUSIC algorithm.
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
# -*- coding: utf-8 -*-
"""A demonstration of frequency estimation using the ESPRIT algorithm.
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 / esprit_demo.py
Last active August 19, 2025 16:02
A demonstration of frequency estimation using the ESPRIT algorithm
# -*- coding: utf-8 -*-
"""A demonstration of frequency estimation using the ESPRIT algorithm.
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
# -*- coding: utf-8 -*-
"""A demonstration of Frequency Estimation Based on WLS-SCDE for a dumped sinusoid.
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
# -*- coding: utf-8 -*-
"""A demonstration of Frequency Estimation Based on WLS-SCDE for a dumped sinusoid.
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