Skip to content

Instantly share code, notes, and snippets.

View hadmack's full-sized avatar

Mike Hadmack hadmack

  • Oceanit
  • Honolulu, HI
View GitHub Profile
@nicolashery
nicolashery / README.md
Created October 18, 2012 20:52
Python setup on Windows

Python setup on Windows

Last updated: Oct 2012

This document is a step-by-step walkthrough on how to set up Python and various tools on a Windows 7 environment.

The primary goal is to have a Python setup that can be used for data analysis, but some more general tools are also installed.

Console2

@endolith
endolith / peakdet.m
Last active August 13, 2025 03:29
Peak detection in Python [Eli Billauer]
function [maxtab, mintab]=peakdet(v, delta, x)
%PEAKDET Detect peaks in a vector
% [MAXTAB, MINTAB] = PEAKDET(V, DELTA) finds the local
% maxima and minima ("peaks") in the vector V.
% MAXTAB and MINTAB consists of two columns. Column 1
% contains indices in V, and column 2 the found values.
%
% With [MAXTAB, MINTAB] = PEAKDET(V, DELTA, X) the indices
% in MAXTAB and MINTAB are replaced with the corresponding
% X-values.