Remap an observable vector after ergodic trimming
RTM 6/27: I don’t think this function is really doing what it should. It does a reordering, but when the mapping is a many->one, don’t you really want to average things together or something?
TJL 7/1: That’s true. I wrote this with only the ergodic trimming in mind, it needs to be updated if it’s going to work w/PCCA as well...
Parameters: | vector : ndarray
Mapping : ndarray
|
---|---|
Returns: | new_vector : ndarray
|
Notes
The state -1 is treated specially – it always stays -1 and is not remapped.