|
Analog search in the PCA space
|
Methods
|
|
__init__
getCoords
|
|
|
__init__
|
__init__ (
self,
dataset,
neofs=None,
pcscaling=1,
)
Constructor for a PCA-space search
Arguments:
-
dataset
- NumPy array with the library dataset
(time is first dimension)
-
neofs
- Number of EOFs to retain. This sets the degrees of
freedom of the search space. Defaults to the number of
EOFs accounting for a 70% of the total variance.
-
pcscaling
- Set the scaling of the EOFs. 0 means orthonormal EOFs.
1 means standardized PCs. Defaults to 1.
|
|
|
getCoords
|
getCoords ( self, field )
Returns the coordinates of field in the PCA space
|
Exceptions
|
|
pex.ANALOGNoMatchingShape( field.shape, self.originalshape )
|
|
|