Remap the states in an assignments file according to a mapping.
Parameters: | assignments : ndarray
mapping : ndarray
|
---|---|
Returns: | NewAssignments : ndarray |
Notes
This function is useful after performing PCCA or Ergodic Trimming. Also, the state -1 is treated specially – it always stays -1 and is not remapped.