Skip to content

Instantly share code, notes, and snippets.

View langmore's full-sized avatar

Ian Langmore langmore

  • Google
  • Mountain View
View GitHub Profile
@ffinkernagel
ffinkernagel / dcor.pyx
Created June 20, 2012 15:10
Distance correlation - not quadratic in space
# Copyright (c) 2012, Florian Finkernagel. All right reserved.
## Redistribution and use in source and binary forms, with or without
## modification, are permitted provided that the following conditions are
## met:
## * Redistributions of source code must retain the above copyright
## notice, this list of conditions and the following disclaimer.
## * Redistributions in binary form must reproduce the above
## copyright notice, this list of conditions and the following
@josef-pkt
josef-pkt / try_distance_corr.py
Created June 15, 2012 19:48
distance covariance and correlation
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 15 14:00:29 2012
Author: Josef Perktold
License: MIT, BSD-3 (for statsmodels)
http://en.wikipedia.org/wiki/Distance_correlation
Yaroslav and Satrajit on sklearn mailing list