First time here? Check out the FAQ!
x

Comparing two amplitudes

0 votes
59 views
Hi there,

How would you compare the amplitudes of two signals?

Signals A and B are each going into an Amplitude Follower, and I'd like to get for instance a value 1 if Amplitude_of_A > Amplitude_of_B, and 0 otherwise.

Thank you!
asked Feb 27 in Capytalk & Smalltalk by johannes-regnier (210 points)
Ended up doing a difference followed by an equality to 0. But maybe there is a better way.

1 Answer

+1 vote
Your approach will work, but you can save a tiny bit of dsp power if you use a threshold instead of the equality ;)
answered Feb 27 by kymaguy (Virtuoso) (10,460 points)
Great, threshold of course, thank you!
...