Table of Contents

Class: __ANALOG analog.py

Base class for the analog search. It cannot be instanciated!

Any class derived from this one MUST define at least the following attributes:

dataset
The dataset into which the analog is to be searched.
originalshape
The original shape of the dataset.
P
Coordinates in a given metric (say Euclidean-EOF-space) of the dataset.

and the method:

getCoords(pattern)
which gives the coordinates of pattern in a given metric.
Methods   
__getitem__
__len__
findAnalogRecord
findNAnalogRecords
  __getitem__ 
__getitem__ ( self,  i )

Slide access to the library dataset

  __len__ 
__len__ ( self )

Number of records in the library dataset

  findAnalogRecord 
findAnalogRecord ( self,  field )

Returns the index in dataset of the analog for the field field

  findNAnalogRecords 
findNAnalogRecords (
        self,
        field,
        n,
        )

Returns the n indices in dataset of the n nearest analogs for field


Table of Contents

This document was automatically generated on Mon Dec 9 15:58:37 2002 by HappyDoc version 2.1