Skip to content

Commit

Permalink
Fix radius of gyration definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
RadostW committed Feb 24, 2025
1 parent 18534ae commit 4d9cfa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Example use
) # sizes in angstroms

centre_of_mass = np.mean(ensemble, axis=1) # shape = (conformer,3)
gyration_radius = np.sqrt(np.mean((ensemble - centre_of_mass.reshape(-1, 1, 3)) ** 2))
gyration_radius = np.sqrt(3) * np.sqrt(np.mean((ensemble - centre_of_mass.reshape(-1, 1, 3)) ** 2))

bootstrap_rounds = 5
if args.sigmas:
Expand Down

0 comments on commit 4d9cfa2

Please sign in to comment.