github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jbm9 / wii_gestures

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 6
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Tree: c4f70b6

click here to add a description

click here to add a homepage

  • Branches (1)
    • master
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

wiimote gesture recognition library — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

initial kmeans and preproccess stuff 
redduck666 (author)
Fri Jun 26 18:59:46 -0700 2009
commit  c4f70b6ab29279df32e2a37beb14a638c5678e85
tree    51f0439386c27041fdd6be13bc19c53367b28da1
parent  73ca1da2d54e4edaa0f3b29a19cda4a050c84d2c
wii_gestures / noodling / process / kmeans.py noodling/process/kmeans.py
100755 10 lines (8 sloc) 0.493 kb
edit raw blame history
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python
#this little one linner preprocesses the data as dumped by "wmdump" into something that python can diggest
#for i in ../training-data-capture-20090610/*; do awk -F '[=, ]' 'BEGIN { print "data = [" } /Acc/ { printf "[%s, %s, %s],\n", $4, $7, $10 } END { print "]" }' "$i"; done > data.py
 
import numpy
from scipy.cluster.vq import kmeans2
from data import data
points, res = kmeans2(numpy.array(data, dtype=float), 3)
print 'points: %s\n\n\nresults: %s' % (points, res)
 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server