deepcharles / ruptures

ruptures: change point detection in Python
BSD 2-Clause "Simplified" License
1.6k stars 163 forks source link

Can ruptures detect change point of pulses? #256

Closed elcolie closed 2 years ago

elcolie commented 2 years ago

I need to detect change point of 2 pulses. Here are the results I got from rbf, l2, and l1. Can ruptures detect change point of pulses?

image image image

deepcharles commented 2 years ago

Hi,

Sorry for the late reply. You can try the custom cost function defined here. You might have to set the baseline of the signal to 0 (signal = signal - signal.min()).

A different approach would be to use the peak finding procedure of scipy with the appropriate parameters.

Hope this helps

deepcharles commented 2 years ago

Closing for now. Feel free to reopen.