source: orange/docs/reference/rst/code/symmatrix.py @ 9823:7f9c3f3c6474

Revision 9823:7f9c3f3c6474, 272 bytes checked in by lanumek, 2 years ago (diff)

Changed names of data sets (table replaced with data or name of the data set).

Line 
1import Orange
2
3m = Orange.data.SymMatrix(4)
4for i in range(4):
5    for j in range(i+1):
6        m[i, j] = (i+1)*(j+1)
7
8
9print m
10print
11
12m.matrixType = m.Upper
13print m
14print
15
16m.matrixType = m.UpperFilled
17print m
18print
19
20m.matrixType = m.Lower
21for row in m[:3]:
22    print row
Note: See TracBrowser for help on using the repository browser.