Loading...
Searching...
No Matches
RmsdDistance.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2// Copyright (c) gpridge developers
3// See LICENSE for details.
4
5#ifndef GPR_AUXILIARY_DISTANCE_RMSDDISTANCE_H_
6#define GPR_AUXILIARY_DISTANCE_RMSDDISTANCE_H_
7
8#include "../Distance.h"
9#include "DistanceBase.h"
10
11namespace aux::distance {
12
14class RmsdDistance : public DistanceBase {
15public:
16 void distance(const gpr::Coord& x1, const gpr::Coord& x2,
17 const gpr::AtomsConfiguration& conf_info,
18 gpr::FieldMatrixd& dist) const override
19 {
20 aux::Distance engine;
21 engine.dist_rmsd(x1, x2, conf_info, dist);
22 }
23};
24
25} // namespace aux::distance
26
27#endif
Methods to calculate distances between atoms.
Definition Distance.h:154
void dist_rmsd(const gpr::Coord &x1, const gpr::Coord &x2, const gpr::AtomsConfiguration &conf_info, gpr::FieldMatrixd &dist)
Calculates the aligned Root Mean Square Deviation (RMSD) between sets of configurations.
Definition Distance.cpp:410
DistanceMetricType::RMSD. Delegates to aux::Distance::dist_rmsd.
void distance(const gpr::Coord &x1, const gpr::Coord &x2, const gpr::AtomsConfiguration &conf_info, gpr::FieldMatrixd &dist) const override
Pairwise distances between the rows of x1 and the rows of x2.
FieldMatrixd Coord
Definition Macros.h:35
Eigen::Matrix< double, EigenDynamic, EigenDynamic, FieldMatrixStorage > FieldMatrixd
Definition Macros.h:25
Stores configurations of all atoms in the system.
Definition Structures.h:832