-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathINSTALL.txt
50 lines (33 loc) · 1.15 KB
/
INSTALL.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
INSTALLATION:
=============
Requirements:
-------------
The following packages are required:
* Python programming language versions 2.6 or 2.7 (not 3.x)
* NumPy numerical library
* Matplotlib plotting package
* Sympy symbolic computation package
The following packages are recommended:
* SciPy Python scientific library
* Cython if you want to compile the code yourself
Downloading and installation:
-----------------------------
Download Pacal at SourceForge. If you are a Windows user, get the provided Windows installer. Otherwise get the tar.gz file, unpack it and type
python setup.py install
just as with any other Python package.
USING PaCal:
============
To start using the package, run Python and type
from pacal import *
N = NormalDistr()
N.plot()
show()
N.cdf(0) # should produce 0.5
N.summary() # prints summary: mean, variance, etc.
You can compute with probability distributions just as with standard variables (independence is always assumed):
C = N / N # Cauchy distribution
C.summary()
L = N*N + N*N # Laplace distribution
L.plot()
show()
Many more examples are available with the package in the examples/ directory.