Skip to content

Instantly share code, notes, and snippets.

View thomaskeck's full-sized avatar

Thomas Keck thomaskeck

  • Karlsruhe
View GitHub Profile
@MarkusPrim
MarkusPrim / cramer-von-mises.py
Last active July 27, 2017 13:00
Cramer-von-Mises distance for two weighted samples
import numpy
def cvm_2samp_weigted(data1, data2, wei1, wei2):
"""Calculate Cramer-vonMises test statistics with weighted samples."""
# Indices for a sorted array
ix1 = numpy.argsort(data1)
ix2 = numpy.argsort(data2)
# Sorted data
data1 = data1[ix1]
data2 = data2[ix2]
@wvengen
wvengen / NOTES.md
Last active March 13, 2021 17:20
Freedrum on Linux

Freedrum on Linux

The recently released Freedrum has no official Linux support. But, fortunately, it uses standard Bluetooth LE MIDI. It doesn't seem to work out of the box, yet (on Ubuntu 17.04, most probably Ubuntu 18.04 will support it directly).

Bluez 5.46

One really needs bluez 5.46 or higher. On Ubuntu, these are packaged in artful proposed (amd64). Unfortunately, MIDI support is not enabled in this build (Ubuntu bug #1713017).

So you'll need to download the sources, install dependencies plus libasound2-dev, build and install resulting debs. You may need to add --enable-midi to debian/rules. Like this: