Skip to content

Instantly share code, notes, and snippets.

View PacoSalas's full-sized avatar

Paco Salas PacoSalas

  • España
View GitHub Profile
@PacoSalas
PacoSalas / geo_median.py
Created August 8, 2020 16:28 — forked from endolith/geo_median.py
Computing the geometric median in Python by Daniel J Lewis
import math
from dbfpy import dbf
import matplotlib.pyplot as plt
#create a plot
fig = plt.figure(1, figsize = [10,10], dpi=90)
axScatter = plt.subplot(111)
def candMedian(dataPoints):
#Calculate the first candidate median as the geometric mean
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.