Code Monkey home page Code Monkey logo

find-peaks's Introduction

find-peaks

This peak finder is a C++ version of the original code written by Nathanael Yoder shared in Matlab File Exchange.

It finds local maxima in a noisy std:vector.

The original code was written for Matlab and can be found in the following LINK

find-peaks's People

Contributors

claydergc avatar emezav avatar h4k1m0u avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

find-peaks's Issues

endpoint bug

Code throws an 'vector out of range' error, when there is a peak on an endpoint.
Some examples:
Signal: { 0, 0, 0, 1 } --> error
Signal: { 0, 0, 1, 1 } --> no error, peak at pos 2 (seem wrong, there is no peak)
Signal: { 0, 1, 0, 1 } --> error
Signal: { 1, 0, 0, 0 } --> no error, no peaks (if code is supposed to ignore endpoint peaks, response is correct)
Signal: { 1, 1, 0, 0 } --> no error, no peaks (seems correct)
Signal: { 1, 0, 1, 0 } --> error
Signal: { 1, 0, 0, 1 } --> error

How is the code supposed to handle endpoint peaks?
Is there an easy fix to the errors?

Thanks.

Licence missing

Hi,

We are looking at using this in a GPL licenced project - however we cannot do so without a licence. Are you able to select a licence for this code? The original code on mathworks is BSD-licenced

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.