stumpy icon indicating copy to clipboard operation
stumpy copied to clipboard

Add New Class Property

Open seanlaw opened this issue 1 year ago • 0 comments
trafficstars

Currently, it is very hard to retrieve the raw matrix profile values from the Pan Matrix Profile object and the PAN_ property only returns transformed (i.e., normalized, contrasted, binarized) matrix profiles. One solution is to add a P_ property that will return a list of matrix profiles ordered by BFS:

@property
def P_(self):
    P = []
    for i, idx in enumerate(pmp._bfs_indices):
        P.append(self._PAN[idx][ : len(self._T) - self._M[i] + 1])

    return P

Something like this might work...

seanlaw avatar Nov 07 '24 12:11 seanlaw