Contents
Acknowledgement iii
1 Introduction 1
1.1 Motivation....................................... 1
1.2 Context......................................... 2
1.3 Aim of Degree Final Project(TFG) . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.4 Reportoverview.................................... 3
2 Technologies 5
2.1 RvsPython ...................................... 6
2.1.1 History about R and Python . . . . . . . . . . . . . . . . . . . . . . . . 6
2.1.2 WhyPython? ................................. 7
2.2 Ipython Notebook and Parallelism . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2.1 IPythonNotebook .............................. 9
2.2.2 IPythonParallelism ............................. 9
2.2.3 Multicore parallel computing . . . . . . . . . . . . . . . . . . . . . . . . 10
2.2.4 Connecting to the cluster . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2.5 Multicore programming with Direct View interface . . . . . . . . . . . 12
2.3 PythonandSQLite .................................. 13
3 Design and implementation 15
3.1 Extracting information from database . . . . . . . . . . . . . . . . . . . . . . . 15
3.1.1 Description of database . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.1.2 Extractingdata ................................ 20
3.2 Behaviouranalysis .................................. 20
3.2.1 BadrateBR_P................................. 21
3.2.2 BadrateBR_F................................. 23
3.2.3 Algorithm with flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.3 Buildinghistogram.................................. 27
3.4 Scheme......................................... 29
3.5 AddingParallelism.................................. 30
3.5.1 Algorithm of behaviour analysis with parallel computing . . . . . . . 31
i