1 #ifndef CONFIGIOSTRUCSCORE_HH
2 #define CONFIGIOSTRUCSCORE_HH
23 VectorXdAttribute<
Configuration>(
"struc_score",
"Evaluates the mapping of a configuration onto an arbitrary primitive structure, specified by its path. Allowed options are [ 'basis_score' (mean-square site displacement) | 'lattice_score' (lattice deformation metric having units Angstr.^2) | 'total_score' (w*lattice_score+(1.0-w)*basis_score) ]. The struc_score weighting parameter 'w' can be provided as an optional decimal parameter from 0.0 to 1.0 (default 0.5). Ex: struc_score(path/to/PRIM, basis_score, 0.4)"),
37 std::unique_ptr<StrucScore>
clone()
const {
38 return std::unique_ptr<StrucScore>(this->
_clone());
58 bool parse_args(
const std::string &args)
override;
StrucScore(const StrucScore &RHS)
std::unique_ptr< StrucScore > clone() const
Eigen::VectorXd evaluate(const Configuration &_config) const override
bool validate(const Configuration &_config) const override
StrucScore * _clone() const override
Clone.
bool parse_args(const std::string &args) override
Default implementation calls _parse_index_expression.
std::vector< std::string > m_prop_names
std::string short_header(const Configuration &_config) const override
PrimClex is the top-level data structure for a CASM project.
Evaluates the mapping of a configuration onto an arbitrary primitive structure.
std::unique_ptr< PrimClex > m_altprimclex
ConfigMapper m_configmapper
std::vector< std::string > col_header(const Configuration &_config) const override
void set_primclex(PrimClex &_pclex)
A Configuration represents the values of all degrees of freedom in a Supercell.