Andrew Zonenberg on Nostr: Math people: If I have a bunch of sampled data that I've found a local maximum on, ...
Math people: If I have a bunch of sampled data that I've found a local maximum on, and I want to interpolate the peak location to sub-sample precision, what's a good way to do that?
I know how to interpolate a zero crossing linearly but this is a bit more complex, I feel like I'll probably want to fit a sinc or gaussian or something to the data somehow?
Published at
2026-01-07 11:17:20 UTCEvent JSON
{
"id": "430ef8e69a96bc225e3b5b8b2a0c27e044be4ac2e85090c568bbd09eb1f01739",
"pubkey": "c35a8fae05a838b863707803bb1fdfcfcbb39adcf01ee1a9fc52ef44998ce4c0",
"created_at": 1767784640,
"kind": 1,
"tags": [
[
"proxy",
"https://ioc.exchange/users/azonenberg/statuses/115853534231193665",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "Math people: If I have a bunch of sampled data that I've found a local maximum on, and I want to interpolate the peak location to sub-sample precision, what's a good way to do that?\n\nI know how to interpolate a zero crossing linearly but this is a bit more complex, I feel like I'll probably want to fit a sinc or gaussian or something to the data somehow?",
"sig": "9446d3a57cfe1921c737aa088f20c3cb6fc65ede4179b7514cf399cabaf93c03948fd394818c4f7c557ecae81fc56c7e10d8526d2ba477653ad3568881b464e2"
}