This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import numpy as np | |
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| import seaborn as sns | |
| sns.set_style("whitegrid") | |
| filename='QuoteAAPL_2011-9-5_T_2013-1-401' | |
| csv_filename=filename+'.csv' | |
| QuotesAAPLDF=pd.read_csv(csv_filename) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import numpy as np | |
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| import seaborn as sns | |
| sns.set(style="ticks") | |
| # np.random.seed(sum(map(ord, "axis_grids"))) | |
| filename='QuoteAAPL_2011-9-5_T_2013-1-401' | |
| csv_filename=filename+'.csv' | |
| QuotesAAPLDF=pd.read_csv(csv_filename) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import numpy as np | |
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| import seaborn as sns | |
| sns.set(style="ticks") | |
| filename='QuoteAAPL_2011-9-5_T_2013-1-401' | |
| csv_filename=filename+'.csv' | |
| QuotesAAPLDF=pd.read_csv(csv_filename) | |
| # # More data for scatter plots | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | def sym_dict(opt): | |
| if opt==0: | |
| symbol_dict = { | |
| 'XOM': 'Exxon', | |
| 'CVX': 'Chevron', | |
| 'COP': 'ConocoPhillips', | |
| 'VLO': 'Valero Energy', | |
| 'MSFT': 'Microsoft', | |
| 'IBM': 'IBM', | |
| 'T': 'AT&T', | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import datetime | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import matplotlib.cm as cm | |
| import time | |
| import pandas as pd | |
| # # import json | |
| # # Keep q_symbol_dict.py in same directory | |
| import q_symbol_dict | |
| try: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | % %loadfile.m @http://www.ece.rutgers.edu/~orfanidi/ece525/subspace.zip | |
| [Y,T] = loadfile('Saccharomyces_cerevisiae_GENES.txt'); | |
| [RT,CT]=size(T); | |
| for n=1:CT | |
| DNA((n-1)*RT +1:n*RT)=T(:,n); | |
| end | |
| % % NAk=size(DNA,2); | |
| NAk=1200; | |
| N=floor(NAk/5); | |
| M=zeros(N,6); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | function [imeq,pdfim,cdfim]=hist_eqcv(im, nbins) | |
| %__________________________________________________________________ | |
| % Description: Historgram Equalization | |
| % | |
| % Input Variables: | |
| % Assume | |
| % im = double(imread('image_file_name')); | |
| % im=im(:,:,1); | |
| % Get image format back | |
| % im_retrieve=uint8(round(im)); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import sys, requests | |
| # requests is a third party module, more robust that urllib... | |
| #http://docs.python-requests.org/en/latest/ | |
| from lxml import html | |
| if len(sys.argv)==1: | |
| #url_name="https://en.wikipedia.org/wiki/Fa%C3%A0_di_Bruno%27s_formula" | |
| #url_name="https://secure.wikimedia.org/wikipedia/en/wiki/Euler%E2%80%93Maclaurin_formula" | |
| #url_name="https://en.wikipedia.org/wiki/Generalized_normal_distribution" | |
| url_name="https://en.wikipedia.org/wiki/Jacobi_elliptic_functions" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | midi_fname='Scarlatti_Sonata_Longo483_K322.mid'; | |
| % MIDI scripts from: http://www.kenschutte.com/midi | |
| midi = readmidi(midi_fname); | |
| Notes = midiInfo(midi,0); | |
| %diff start and stop times | |
| dNo5=diff(Notes(:,5)); | |
| dNo6=diff(Notes(:,6)); | |
| % To Reconstruct Time Data | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* | |
| Memsic2125 | |
| Read the Memsic 2125 two-axis accelerometer. Converts the | |
| pulses output by the 2125 into milli-g's (1/1000 of earth's | |
| gravity) and prints them over the serial connection to the | |
| computer. | |
| The circuit: | |
| * X output of accelerometer to digital pin 2 | |
| * Y output of accelerometer to digital pin 3 | 
NewerOlder