Ignore:
Timestamp:
02/06/12 21:45:25 (2 years ago)
Author:
Miha Stajdohar <miha.stajdohar@…>
Branch:
default
Message:

EuclideanConstructor to Euclidean.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/mds-euclid-torgerson-3d.py

    r9823 r9866  
    1111 
    1212# Construct a distance matrix using Euclidean distance 
    13 dist = Orange.distance.instances.EuclideanConstructor(iris) 
     13dist = Orange.distance.Euclidean(iris) 
    1414matrix = Orange.core.SymMatrix(len(iris)) 
    1515matrix.setattr('items', iris) 
    1616for i in range(len(iris)): 
    17     for j in range(i+1): 
     17    for j in range(i + 1): 
    1818        matrix[i, j] = dist(iris[i], iris[j]) 
    1919 
Note: See TracChangeset for help on using the changeset viewer.