bootstrap.ipynb 2.6 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Bootstrap"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "%matplotlib inline"
   ]
  },
  {
   "cell_type": "code",
21
   "execution_count": 2,
22
23
24
25
26
27
28
29
30
31
32
33
   "metadata": {},
   "outputs": [],
   "source": [
    "from itten.movie import Movie\n",
    "from itten.views import MultivariateSequence\n",
    "from itten.views import UnivariateSequence\n",
    "from itten.visuals import MultivariatePlot\n",
    "from itten.visuals import UnivariatePlot"
   ]
  },
  {
   "cell_type": "code",
34
   "execution_count": 3,
35
   "metadata": {},
36
   "outputs": [],
37
38
   "source": [
    "# Instanziieren einer generellen Movie Instanz für einen Film\n",
39
40
41
42
43
44
45
46
47
    "movie = Movie(prefix='il_divo_', folder='Politthriller/il_divo/frames/240p30/')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
48
49
50
51
52
53
54
    "# Berechnung eines Kontrastes innerhalb einer Kontrastdarstellung\n",
    "cont = UnivariateSequence(movie._frames,)\n",
    "cont.seqmean(frm_stp=1)"
   ]
  },
  {
   "cell_type": "code",
55
   "execution_count": null,
56
   "metadata": {},
57
   "outputs": [],
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
   "source": [
    "# Visualisierung eines Kontrastest\n",
    "viz = UnivariatePlot(cont,)\n",
    "viz.fig.set_size_inches(40, 5)\n",
    "viz.plot(cont,)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.5"
  },
  "toc": {
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": "block",
   "toc_window_display": true
  },
  "varInspector": {
   "cols": {
    "lenName": 16,
    "lenType": 16,
    "lenVar": 40
   },
   "kernels_config": {
    "python": {
     "delete_cmd_postfix": "",
     "delete_cmd_prefix": "del ",
     "library": "var_list.py",
     "varRefreshCmd": "print(var_dic_list())"
    },
    "r": {
     "delete_cmd_postfix": ") ",
     "delete_cmd_prefix": "rm(",
     "library": "var_list.r",
     "varRefreshCmd": "cat(var_dic_list()) "
    }
   },
   "types_to_exclude": [
    "module",
    "function",
    "builtin_function_or_method",
    "instance",
    "_Feature"
   ],
   "window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}