24 #include "FitProperty.h" 66 BOOST_ASSERT(atomIndex >= 0 && atomIndex <
_targetValues.size());
void setTargetValue(int atomIndex, const Vector3 &value)
Set the target values.
Definition: AtomVectorProperty.h:65
std::vector< Vector3 > & targetValues()
Returns the target values of the vector property.
Definition: AtomVectorProperty.h:78
virtual void parse(XML::Element propertyElement) override
Parse the contents of the <property> element in the job file.
Definition: AtomVectorProperty.cpp:139
std::vector< Vector3 > _computedValues
This holds the computed values for the property.
Definition: AtomVectorProperty.h:92
void setAtomCount(int numAtoms)
Allocates memory to store the property values for the given number of atoms (without ghost atoms)...
Definition: AtomVectorProperty.h:50
std::vector< Vector3 > & values()
Returns the current computed values of the vector property.
Definition: AtomVectorProperty.h:75
std::vector< Vector3 > _targetValues
The target values.
Definition: AtomVectorProperty.h:95
const std::vector< Vector3 > & values() const
Returns the current computed values of the vector property.
Definition: AtomVectorProperty.h:72
Definition: FitProperty.h:38
bool _outputAllEnabled
Controls whether all elements of the vector are to printed if output is enabled.
Definition: AtomVectorProperty.h:98
This file collects the definition of classes that define various simple crystal structures.
Definition: Atomicrex.h:67
bool _hasTargetValues
Indicates that the target values have been set for this fit property.
Definition: AtomVectorProperty.h:101
bool outputAllEnabled() const
Returns whether this property is calculated and displayed at the end of the fitting process...
Definition: AtomVectorProperty.h:44
std::string FPString
The default string type used throughout the code:
Definition: Atomicrex.h:70
Definition: XMLUtilities.h:69
int atomCount()
Retrieve number of atoms.
Definition: AtomVectorProperty.h:59
FitJob * job() const
Returns a pointer to the job to which this object belongs.
Definition: FitObject.h:150
virtual double residual(ResidualNorm norm) const override
Returns the residual of this property used for fitting.
Definition: AtomVectorProperty.cpp:34
const FPString & units() const
Returns the units of this property.
Definition: FitProperty.h:93
virtual void print(MsgLogger &stream) override
Outputs the current value of the property.
Definition: AtomVectorProperty.cpp:75
void setOutputAllEnabled(bool enable)
Sets whether this property is calculated and displayed at the end of the fitting process.
Definition: AtomVectorProperty.h:47
AtomVectorProperty(const FPString &id, const FPString &units, FitJob *job)
Initialization constructor.
Definition: AtomVectorProperty.h:40
ResidualNorm
Specifies how residual contributions are calculated.
Definition: FitProperty.h:43
AtomVectorProperty()
Default constructor.
Definition: AtomVectorProperty.h:37
Definition: AtomVectorProperty.h:32