Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 pyflann import * | |
import numpy as np | |
dataset = np.array( | |
[[1., 1, 1, 2, 3], | |
[10, 10, 10, 3, 2], | |
[100, 100, 2, 30, 1] | |
]) | |
testset = np.array( | |
[[1., 1, 1, 1, 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
import numpy as np | |
import scipy.optimize | |
a = np.array([[0, 0], [1, 1], [2, 2]]) | |
b = np.array([[0, 1], [2, 2.2], [1, 1.2], [0, 0]]) | |
indices = np.indices((len(a), len(b))) | |
# array([[[0, 0, 0, 0], | |
# [1, 1, 1, 1], | |
# [2, 2, 2, 2]], |
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 pandas as pd | |
import errno | |
import numpy as np | |
import sys | |
import warnings | |
def save_mot(filename, df): | |
df.to_csv(filename, header=False, index=False) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 matplotlib.pylab as plt | |
import numpy as np | |
fig = plt.figure() | |
closed = False | |
def handle_close(evt): | |
global closed | |
closed = True |
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
Množiny. Teorie matic. Soustavy lineárních rovnic. | |
Gaussova eliminace | |
Diskriminant | |
Invertibilni matice, singularni matice | |
Linearni zobrazeni, eigenvalues | |
Základy matematické analýzy. Metody aproximace funkcí. Metoda nejmenších čtverců. Aplikace pro hledání modelů z naměřených reálných dat. | |
Lagrangeho multiplikatory | |
Newtonova metoda | |
Linearni regrese |
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
#!/usr/bin/env python | |
from PySide.QtCore import * | |
from PySide.QtGui import * | |
import cv2 | |
import sys | |
class MainApp(QWidget): | |
def __init__(self): |
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 subprocess | |
def pkgconfig(*packages, **kw): | |
""" | |
Query pkg-config for library compile and linking options. Return configuration in distutils | |
Extension format. | |
Usage: | |
pkgconfig('opencv') |
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
# modified numpy concatenate, vstack, hstack accepting scalars in the input tuple | |
def concatenate(tup, axis=0): | |
tup_arrays = [x for x in tup if isinstance(x, np.ndarray)] | |
shape = list(tup_arrays[0].shape) | |
shape[axis] = 1 | |
tup_ = [] | |
for x in tup: | |
if isinstance(x, (int, long, float)): |
NewerOlder