Now it's part of https://github.com/maciejczyzewski/libchaos library!!!
This file contains 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
from os import environ | |
from sys import argv | |
from warnings import filterwarnings | |
from numpy.fft import rfft | |
from numpy.random import seed | |
from numpy import log1p, pi, polymul, mean, argmax | |
from scipy.signal import decimate, bilinear, lfilter, parzen | |
from soundfile import read as _read_audio | |
from copy import copy |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#define pf printf | |
#define oo 0x7FFFFFFF | |
#define nodeptr struct node_t* | |
struct node_t { | |
int val; | |
nodeptr rr; |
This file contains 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
#include <stdio.h> | |
#include <stdlib.h> | |
#define pf printf | |
#define nodeptr struct node_t* | |
struct node_t { | |
int val; | |
nodeptr rr; | |
nodeptr ll; |
This file contains 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
https://dl.dropboxusercontent.com/u/103345209/Computerwissenschaften.pdf |
This file contains 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 | |
df = pd.read_csv('wach2.csv') # case 1: wach.csv, case 2: wach2.csv | |
pd.set_option('display.width', 1000) | |
m1 = 149.8; m2 = 199.6 | |
df.columns = ['m1', 'm2'] | |
m1_avg = df['m1'].mean() |
This file contains 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 f(l, o='{}'): | |
s=[[]] | |
def x(): s[-1].append([]); s.append(s[-1][-1]) | |
def y(): return -1 if len(s) == 1 else s.pop() | |
for c in l: | |
try: | |
if { o[0]: x, o[1]: y }[c]() == -1: return False | |
except KeyError: s[-1].append(c) | |
return s[0] if len(s) == 1 else False |
This file contains 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 | |
df = pd.read_csv('grav.csv') | |
pd.set_option('display.width', 1000) | |
def t_avg(row): | |
return sum(row[0:4]) / 4 | |
df['t_avg'] = df.apply(lambda row: t_avg(row), axis=1) |
This file contains 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
/* NCG written in 2015 by Maciej A. Czyzewski | |
To the extent possible under law, the author has dedicated all copyright | |
and related and neighboring rights to this software to the public domain | |
worldwide. This software is distributed without any warranty. | |
See <http://creativecommons.org/publicdomain/zero/1.0/>. */ | |
// Simulating a 16-bit & 32-bit value | |
function U16(i) { return i & 0xFFFF; } function U32(i) { return i & 0xFFFFFFFF; } |
This file contains 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
https://dl.dropboxusercontent.com/u/103345209/Ignacy-Krasicki.pdf |
NewerOlder