Transforms a signature matrix into a pattern space matrix by processing each row to reflect categorical changes (increase, decrease, no change) in sequence values. These changes are then hashed to create unique pattern identifiers.
Value
A numeric matrix where each row contains hashed pattern identifiers derived from categorical changes in the signature matrix. Returns a matrix with NA values if any row contains NA values.
Details
Transform Signature Matrix into Pattern Space Matrix
The function performs these key steps:
Converts numerical differences into categorical changes (1: decrease, 2: no change, 3: increase)
Applies a hashing function (detailed below) to generate unique identifiers for each pattern
Handles missing values by returning NA for rows containing NA values.