Ambiente: Ubuntu 14.04
sudo apt-get install git
sudo apt-get install python-scipy
sudo apt-get install python-numpy
sudo apt-get install python-skimage
sudo apt-get install python-pandas
sudo apt-get install python-opencv
\documentclass[11pt]{article} | |
\usepackage[utf8]{inputenc} | |
\usepackage{graphicx} | |
\usepackage{subfig} | |
\begin{document} | |
\begin{figure}[!ht] | |
\centering | |
\caption{Caption superior.} |
""" | |
Haar Mother Wavelet. | |
Example of Haar Mother Wavelet in python using np.piecewise interval definition. | |
""" | |
# Ref.: | |
# https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.piecewise.html | |
# https://sfalsharif.wordpress.com/2009/12/18/piecwise-function-definitions-in-numpy/ | |
import numpy as np | |
import matplotlib.pyplot as plt |
# images to hdf5 | |
# https://groups.google.com/forum/#!topic/h5py/9sA18XbC_ao | |
# https://github.com/h5py/h5py/issues/268 | |
import h5py | |
import numpy | |
def create_image_dataset(group, dataset_name, image, **kwargs): | |
""" | |
Create a dataset respecting the HDF5 image specification |
\chapter*{Lista de Abreviaturas} | |
%\clearpage \thispagestyle{empty} % optional to clear page numbers | |
\begin{tabular}{ll} | |
2D & Estrutura Bidimensional.\\ | |
\\ | |
3D & Estrutura Tridimensional.\\ | |
\\ | |
B & Região de corpo (\emph{Body}).\\ | |
\\ |
import time | |
import random | |
import numpy as np | |
import multiprocessing as mp | |
class simulacron(object): | |
"""sync and async functs for simulacron.""" | |
def __init__(self, n=512*5, freq=512, freq2=4): | |
super(simulacron, self).__init__() |
from lxml import html | |
import requests | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import time | |
from sklearn.cluster import KMeans | |
from sklearn import preprocessing | |
import seaborn as sns |
import numpy as np | |
import scipy | |
from scipy import signal | |
import matplotlib.pyplot as plt | |
freq1 = 60 # Hz | |
freq2 = 90 # Hz | |
sampling_rate = 1000 # samples per second | |
time = 1 # segundos |