Compute RMSD of all conformations in target to a reference conformation. Note, this will center the conformations in place.
| Parameters: | target : md.Trajectory 
 reference : md.Trajectory 
 frame : int 
 atom_indices : array_like, or None 
 parallel : bool 
 precentered : bool, default=False 
 | 
|---|---|
| Returns: | rmsds : np.ndarray, shape=(target.n_frames,) 
 | 
See also
Notes
This function uses OpenMP to parallelize the calculation across multiple cores. To control the number of threads launched by OpenMP, you can set the environment variable OMP_NUM_THREADS.
Examples
>>> import mdtraj as md                                      
>>> rmsds = md.rmsd(trajectory, trajectory, 0)               
>>> print rmdsds                                             
array([ 0.0,  0.03076187,  0.02549562, ...,  0.06230228,
    0.00666826,  0.24364147])
The calculation is slightly faster if you precenter the trajectory
>>> trajectory.center_coordinates()
>>> rmsds = md.rmsd(trajectory, trajectory, 0, precentered=True)