Title: minimum_phase method returns a longer input sequence when n is longer than the input · Issue #267 · python-acoustics/python-acoustics · GitHub
Open Graph Title: minimum_phase method returns a longer input sequence when n is longer than the input · Issue #267 · python-acoustics/python-acoustics
X Title: minimum_phase method returns a longer input sequence when n is longer than the input · Issue #267 · python-acoustics/python-acoustics
Description: If I use minimum_phase like this: def next_power_of_2(x): return 1 if x == 0 else 2 ** np.ceil(np.log2(x)).astype('int') n = next_power_of_2 (len(signal)) mpt = minimum_phase(signal, n) Then I get back a size of mpt thats being minimum p...
Open Graph Description: If I use minimum_phase like this: def next_power_of_2(x): return 1 if x == 0 else 2 ** np.ceil(np.log2(x)).astype('int') n = next_power_of_2 (len(signal)) mpt = minimum_phase(signal, n) Then I get ...
X Description: If I use minimum_phase like this: def next_power_of_2(x): return 1 if x == 0 else 2 ** np.ceil(np.log2(x)).astype('int') n = next_power_of_2 (len(signal)) mpt = minimum_phase(signal, n) The...
Opengraph URL: https://github.com/python-acoustics/python-acoustics/issues/267
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"minimum_phase method returns a longer input sequence when n is longer than the input","articleBody":"If I use minimum_phase like this:\r\n\r\n\r\n```\r\ndef next_power_of_2(x):\r\n return 1 if x == 0 else 2 ** np.ceil(np.log2(x)).astype('int')\r\n \r\nn = next_power_of_2 (len(signal))\r\nmpt = minimum_phase(signal, n)\r\n```\r\n\r\nThen I get back a size of mpt thats being minimum phase transformed thats the same size as the expanded fft, rather than the original signal length.\r\n\r\nI think something like this would need to be done:\r\n\r\n```\r\nm = np.fft.ifft(np.exp(np.fft.fft(window[:len(x)] * ceps))).real\r\n```\r\n","author":{"url":"https://github.com/7sharp9","@type":"Person","name":"7sharp9"},"datePublished":"2024-01-18T22:52:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/267/python-acoustics/issues/267"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9a47b562-16f4-766c-5e1d-ca1906f6b228 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C684:5BEB0:838A63:AF5F87:698EDB80 |
| html-safe-nonce | 6a6491a4a1ab99493aded0955a8f8dde8ba67c5d09b3e59f09e1e177d12528d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjg0OjVCRUIwOjgzOEE2MzpBRjVGODc6Njk4RURCODAiLCJ2aXNpdG9yX2lkIjoiNTE5OTI3Mzg4MDQ3MzM0MjcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9863497d3157a5c86b232892fd5623d64ddd9b3a534a8db062698b9c3d752391 |
| hovercard-subject-tag | issue:2089201771 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-acoustics/python-acoustics/267/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e0f423eb55be4e447710f77ecb7997bcb8101682a18de8a42e6e769746b21733/python-acoustics/python-acoustics/issues/267 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e0f423eb55be4e447710f77ecb7997bcb8101682a18de8a42e6e769746b21733/python-acoustics/python-acoustics/issues/267 |
| og:image:alt | If I use minimum_phase like this: def next_power_of_2(x): return 1 if x == 0 else 2 ** np.ceil(np.log2(x)).astype('int') n = next_power_of_2 (len(signal)) mpt = minimum_phase(signal, n) Then I get ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 7sharp9 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/python-acoustics/python-acoustics git https://github.com/python-acoustics/python-acoustics.git |
| octolytics-dimension-user_id | 3644840 |
| octolytics-dimension-user_login | python-acoustics |
| octolytics-dimension-repository_id | 14710112 |
| octolytics-dimension-repository_nwo | python-acoustics/python-acoustics |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14710112 |
| octolytics-dimension-repository_network_root_nwo | python-acoustics/python-acoustics |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width