Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peak perform #62

Merged
merged 9 commits into from
Sep 22, 2015
Merged

Peak perform #62

merged 9 commits into from
Sep 22, 2015

Conversation

Pica4x6
Copy link
Collaborator

@Pica4x6 Pica4x6 commented Sep 21, 2015

fixed #60
fixed #59
fixed #58

fixed #41

fixed bug in kernel.pyx

def get_peak_indexes(original_data, window_width=5, threshold=0.0):
    kernel_peak2 = kernel_peak_function(threshold)
    out = generic_filter(original_data, kernel_peak2, window_width)
    result, =  numpy.nonzero(out)

    numero_maximo = numpy.amax(original_data) - (window_width // 2)
    numero_minimo = window_width // 2
    result = result[(result >= numero_minimo) & (result <= numero_maximo)]
    return result
def get_peak_indexes(arr, window_width=5, threshold=0.0):
    kernel_peak2 = kernel_peak_function(threshold)
    out = generic_filter(original_data, kernel_peak2, window_width)
    result, =  numpy.nonzero(out)

    numero_maximo = numpy.amax(arr) - (window_width // 2)
    numero_minimo = window_width // 2
    result = result[(result >= numero_minimo) & (result <= numero_maximo)]
    return result
1) mode = "reflect"
2) for i in range(nmed, filter_size-1):
3) buffer[i] <= buffer
4) buffer[i] >= buffer[i+1]:
5) Raise an exception when (window_width<3) or (window_width % 2 == 0)
sergiopasra added a commit that referenced this pull request Sep 22, 2015
Enhancements for peak finding
@sergiopasra sergiopasra merged commit 9b2ddba into guaix-ucm:master Sep 22, 2015
@Pica4x6 Pica4x6 deleted the peak-perform branch November 19, 2015 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment