Skip to content

Instantly share code, notes, and snippets.

View fccoelho's full-sized avatar
🏠
Working from home

Flávio Codeço Coelho fccoelho

🏠
Working from home
View GitHub Profile
@fccoelho
fccoelho / ode_tut.py
Created November 4, 2011 13:03
Exemplos de integração numérica de sistemas de equações diferenciais ordinárias.
# coding:utf8
"""
Exemplos de integração numérica de sistemas de equações diferenciais ordinárias.
ode : interface para a coleção de solvers VODE http://www.netlib.org/ode
Flávio Codeço Coelho
Licença: GPL
"""
"""
MinMax peak detector
Originally from:
https://fedorahosted.org/pydarn/export/dfbf33a36aab3f576ec585f66b6bc99dfd5750d7/peakdetect/MinMax.py
"""
import sys, copy, math
import numpy
@fccoelho
fccoelho / peakdetect.py
Created February 11, 2010 13:46 — forked from endolith/peakdet.m
simple peak detection code
import sys
from numpy import NaN, Inf, arange, isscalar, array
def peakdet(v, delta, x = None):
"""
Converted from MATLAB script at http://billauer.co.il/peakdet.html
Returns two arrays
function [maxtab, mintab]=peakdet(v, delta, x)
@fccoelho
fccoelho / Spark logistic regression.ipynb
Created July 9, 2015 12:20
PySpark Logistic regression
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fccoelho
fccoelho / PyDSTool_benchmark.ipynb
Last active August 29, 2015 14:23
Benchmark of ODE solvers
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fccoelho
fccoelho / benchMongoDict.py
Created May 26, 2015 12:45
MongoDict benchmark
"""
In [16]: %timeit dic_normal(1000)
1000 loops, best of 3: 802 µs per loop
In [17]: %timeit dic_mongo(1000)
1 loops, best of 3: 308 ms per loop
In [18]: dic2 = dic_normal(1000)
In [19]: %time col.insert(dic2)
CPU times: user 15.1 ms, sys: 600 µs, total: 15.7 ms
Wall time: 22.1 ms
"""
@fccoelho
fccoelho / Classifica_Artigos.ipynb
Created July 17, 2014 19:14
experimentos de classificação de artigos do MediaCLoud
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.