Calculate counts matrix from assignments.
Parameters: | assignments : ndarray
n_states : int, optional
lag_time: int, optional :
sliding_window: bool, optional :
|
---|---|
Returns: | counts : sparse matrix
|
Notes
assignments are input as iterables over numpy 1-d arrays of integers. For example a 2-d array where assignments[i,j] gives the ith trajectory, jth frame. The beginning and end of each trajectory may be padded with negative ones, which will be ignored. If the number of states is not given explitly, it will be determined as one plus the largest state index of the Assignments. Sliding window yields non-independent samples, but wastes less data.