Saturday, January 29, 2011

Peak detection algorithm

We decided that a hueristic approach to an adaptive threshold could be using a pdf of a wider band than the one we are sensing. The idea is that we assume the noise energy is prominantly feature on the lowest part of the energy range. Therefore we needed to find the peak of the noise - mean of the main noise distribution.

After considering use of the TSpectrum class from ROOT I found a simple Matlab function that seemed to do what I wanted.

http://billauer.co.il/peakdet.html

Actually I used a Python version of the script I found posted at StackOverflow.

http://stackoverflow.com/questions/1713335/peak-finding-algorithm-for-python-scipy

Which I then converted to C++ in gnuradio. So far after playing with some of the input parameters it seems to work OK. Since we assume that the noise energy is going to be prominently featured at the low-end of the scale, this algorithm appears accurate enough to identify that noise peak.

11 comments:

  1. Hi,
    I am interested in Peak detection algorithm.
    If Okay, would you please provide your C code to me?

    junli2020@gmail.com

    Thank you very much

    ReplyDelete
  2. hello,
    i'm also interested in the C++ version.
    might you send it to me?

    batchku@gmail.com

    thanks in advance,
    ali

    ReplyDelete
  3. hi
    can i also be provided with a c code please thanks
    this will greatly be appreciated.
    shenelled1@gmail.com

    shend

    ReplyDelete
  4. May I have your c code?
    thanks anyway
    poonbabycs96g@gmail.com

    ReplyDelete
  5. Hi,
    I am interested in Peak detection algorithm.
    If Okay, would you please provide your C code to me?

    kuldeepssmbm@gmail.com

    Thank you very much

    ReplyDelete
  6. Hi,
    I am interested in Peak detection algorithm.
    If Okay, would you please provide your C code to me?

    basuco7@gmail.com

    Thank you very much

    ReplyDelete
  7. Hi,
    I am interested in Peak detection algorithm.
    If Okay, would you please provide your C code to me?

    basuco7@gmail.com

    Thank you very much

    ReplyDelete
  8. Hi,
    I am interested in Peak detection algorithm.
    If Okay, would you please provide your C code to me?

    striango@gmail.com

    Thank you very much

    ReplyDelete
  9. Hi,
    I am interested in Peak detection algorithm.
    If Okay, would you please provide your C code to me?

    duongnv.uet@gmail.com

    Thank you very much

    ReplyDelete
  10. Hi,
    I am very interested in Peak detection algorithm.
    If Okay, would you please provide your C code to me?

    zouguodehenhi@gmail.com

    Thank you very much!!

    ReplyDelete
  11. Hi,
    I am very interested in Peak detection algorithm.
    If Okay, would you please provide your C code to me?

    momo123163@gmail.com

    Thank you very much!!

    ReplyDelete