Changeset 7602:aabebb7090a1 in orange


Ignore:
Timestamp:
02/05/11 00:52:06 (3 years ago)
Author:
matija <matija.polajnar@…>
Branch:
default
Convert:
b45f5748f2012197561a4e2291350db393701476
Message:

MDS regression tests/documentation: Add Orange.distances bindings.

Location:
orange/doc/Orange/rst/code
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/doc/Orange/rst/code/mds-euclid-torgerson-3d.py

    r7493 r7602  
    1111 
    1212# Construct a distance matrix using Euclidean distance 
    13 dist = Orange.distances.ExamplesDistanceConstructor_Euclidean(table) 
     13dist = Orange.distances.EuclideanConstructor(table) 
    1414matrix = Orange.core.SymMatrix(len(table)) 
    1515matrix.setattr('items', table) 
  • orange/doc/Orange/rst/code/mds-scatterplot.py

    r7493 r7602  
    1111 
    1212# Construct a distance matrix using Euclidean distance 
    13 euclidean = Orange.core.ExamplesDistanceConstructor_Euclidean(table) 
     13euclidean = Orange.distances.EuclideanConstructor(table) 
    1414distance = Orange.core.SymMatrix(len(table)) 
    1515for i in range(len(table)): 
Note: See TracChangeset for help on using the changeset viewer.