BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Definition at line 70 of file DistributionItems.h.
Public Member Functions | |
SymmetricResolutionItem (double mean, int decimals=3, const QString &meanLabel="Mean") | |
virtual std::unique_ptr< IDistribution1D > | createDistribution (double scale=1.0) const =0 |
virtual std::unique_ptr< IRangedDistribution > | createIRangedDistribution (double scale) const =0 |
virtual double | deviation (double scale) const =0 |
virtual DoubleDescriptors | distributionValues (bool withMean=true) const =0 |
DOUBLE_PROPERTY (mean, Mean) | |
DOUBLE_PROPERTY (sigmaFactor, SigmaFactor) | |
bool | hasSigmaFactor () const |
virtual void | initDistribution (double) |
template<typename T > | |
bool | is () const |
RealLimits | limits () const |
void | serialize (Streamer &s) |
Serialization of contents. More... | |
void | setLimits (const RealLimits &limits) override |
void | setMeanDecimals (uint d) |
void | setUnit (const variant< QString, Unit > &unit) override |
Set the unit of the distributed value. More... | |
UINT_PROPERTY (numberOfSamples, NumberOfSamples) | |
Protected Member Functions | |
void | addToSerialization (DoubleProperty *d) |
void | initSigmaFactor () |
Protected Attributes | |
RealLimits | m_limits |
Private Attributes | |
QVector< DoubleProperty * > | m_serializationProperties |
SymmetricResolutionItem::SymmetricResolutionItem | ( | double | mean, |
int | decimals = 3 , |
||
const QString & | meanLabel = "Mean" |
||
) |
Definition at line 69 of file DistributionItems.cpp.
References DistributionItem::addToSerialization(), and unitless.
|
protectedinherited |
Definition at line 40 of file DistributionItems.cpp.
References DistributionItem::m_serializationProperties.
Referenced by DistributionCosineItem::DistributionCosineItem(), DistributionGateItem::DistributionGateItem(), DistributionGaussianItem::DistributionGaussianItem(), DistributionLogNormalItem::DistributionLogNormalItem(), DistributionLorentzItem::DistributionLorentzItem(), DistributionTrapezoidItem::DistributionTrapezoidItem(), SymmetricResolutionItem(), and DistributionItem::initSigmaFactor().
|
pure virtualinherited |
|
pure virtual |
Implemented in DistributionCosineItem, DistributionGaussianItem, DistributionLorentzItem, and DistributionNoneItem.
|
pure virtual |
Implemented in DistributionCosineItem, DistributionGaussianItem, DistributionLorentzItem, and DistributionNoneItem.
|
pure virtualinherited |
SymmetricResolutionItem::DOUBLE_PROPERTY | ( | mean | , |
Mean | |||
) |
|
inherited |
|
inherited |
Definition at line 45 of file DistributionItems.cpp.
Referenced by DistributionPlot::plot_multiple_values().
|
inlinevirtualinherited |
Reimplemented in DistributionTrapezoidItem, DistributionCosineItem, DistributionLogNormalItem, DistributionGaussianItem, DistributionLorentzItem, DistributionGateItem, and DistributionNoneItem.
Definition at line 40 of file DistributionItems.h.
Referenced by BeamAzimuthalAngleItem::initDistribution(), and BeamInclinationAngleItem::initDistribution().
|
protectedinherited |
Definition at line 34 of file DistributionItems.cpp.
References DistributionItem::addToSerialization(), and unitless.
Referenced by DistributionCosineItem::DistributionCosineItem(), DistributionGaussianItem::DistributionGaussianItem(), DistributionLogNormalItem::DistributionLogNormalItem(), and DistributionLorentzItem::DistributionLorentzItem().
|
inlineinherited |
Definition at line 33 of file DistributionItems.h.
Referenced by DistributionPlot::plot_distributions(), DistributionPlot::plot_multiple_values(), and DistributionPlot::plot_single_value().
|
inherited |
Definition at line 62 of file DistributionItems.cpp.
References DistributionItem::m_limits.
Referenced by DistributionPlot::plot_multiple_values(), DistributionItem::setLimits(), and setLimits().
|
inherited |
Serialization of contents.
Important: limits and a changed unit (with setUnit) will not be serialized here. They have to be set again by the owner of DistributionItem after reading it
Definition at line 50 of file DistributionItems.cpp.
References Streamer::assertVersion(), DistributionItem::m_serializationProperties, and Serialize::rwProperty().
|
overridevirtual |
Reimplemented from DistributionItem.
Definition at line 81 of file DistributionItems.cpp.
References DistributionItem::limits(), and DistributionItem::setLimits().
void SymmetricResolutionItem::setMeanDecimals | ( | uint | d | ) |
Definition at line 87 of file DistributionItems.cpp.
|
overridevirtual |
Set the unit of the distributed value.
Implements DistributionItem.
Reimplemented in DistributionCosineItem, DistributionGaussianItem, and DistributionLorentzItem.
Definition at line 76 of file DistributionItems.cpp.
Referenced by DistributionLorentzItem::setUnit(), DistributionGaussianItem::setUnit(), and DistributionCosineItem::setUnit().
|
inherited |
|
protectedinherited |
|
privateinherited |
Definition at line 67 of file DistributionItems.h.
Referenced by DistributionItem::addToSerialization(), and DistributionItem::serialize().