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
|
|