mdhmm#
- torchspin.mdhmm(dihedrals, dt, n_states, n_lag, opt=None)[source]#
Build Hidden Markov Model from dihedral angle trajectories.
- Parameters:
dihedrals (ndarray, shape (nDihedrals, nSteps) or (nDihedrals, nTraj, nSteps)) – Spin-label dihedral angles in radians.
dt (float) – Dihedral trajectory time step.
n_states (int) – Number of HMM states.
n_lag (int) – Lag step (number of time steps for downsampling).
opt (HMMOptions, optional)
- Returns:
hmm (HMMResult)
- Return type: