N
not_a_commie
This sounds like a textbook problem, but I promise it's not for a
class. Rather, it's part of an audio filter I'm working on.
Problem statement: Given a collection of 1D points and a positive
intensity value at each point in the collection, find a subcollection
of the points such that they are all equally spaced (+/-E) and the
intensity sum is maximized.
Some of the points are clumped together, but I would only want one of
a clump in the result set. My initial approach to the problem was to
find the subsets that are equally spaced, but I'm not sure how to deal
with the clumps; they expand my list of subsets exponentially.
Thanks for any ideas.
class. Rather, it's part of an audio filter I'm working on.
Problem statement: Given a collection of 1D points and a positive
intensity value at each point in the collection, find a subcollection
of the points such that they are all equally spaced (+/-E) and the
intensity sum is maximized.
Some of the points are clumped together, but I would only want one of
a clump in the result set. My initial approach to the problem was to
find the subsets that are equally spaced, but I'm not sure how to deal
with the clumps; they expand my list of subsets exponentially.
Thanks for any ideas.