13namespace DataObjects {
28 RebinnedOutput(
bool finalized,
bool hasSqrdErrs) : m_finalized(finalized), m_hasSqrdErrs(hasSqrdErrs) {}
30 std::unique_ptr<RebinnedOutput>
clone()
const {
return std::unique_ptr<RebinnedOutput>(doClone()); }
32 std::unique_ptr<RebinnedOutput>
cloneEmpty()
const {
return std::unique_ptr<RebinnedOutput>(doCloneEmpty()); }
36 const std::string id()
const override;
45 void finalize(
bool hasSqrdErrs =
true);
65 void scaleF(
const double scale);
67 bool nonZeroF()
const;
74 void init(
const std::size_t &NVectors,
const std::size_t &XLength,
const std::size_t &YLength)
override;
75 void init(
const HistogramData::Histogram &histogram)
override;
double value
The value of the point.
std::map< DeltaEMode::Type, std::string > index
RebinnedOutput(bool finalized, bool hasSqrdErrs)
RebinnedOutput & operator=(const RebinnedOutput &)=delete
RebinnedOutput * doCloneEmpty() const override
Virtual cloneEmpty method.
bool m_hasSqrdErrs
Flag to indiciate if the finalized data used squared errors.
bool m_finalized
Flag to indicate if finalize has been called, and if errors/variance used.
RebinnedOutput * doClone() const override
Virtual clone method. Not implemented to force implementation in children.
std::unique_ptr< RebinnedOutput > clone() const
Returns a clone of the workspace.
void setSqrdErrors(bool value)
Override the squared errors flag.
void setFinalized(bool value)
Override the finalized flag.
bool hasSqrdErrors() const
Returns if using squared errors.
std::unique_ptr< RebinnedOutput > cloneEmpty() const
Returns a default-initialized clone of the workspace.
RebinnedOutput(const RebinnedOutput &)=default
Protected copy constructor. May be used by childs for cloning.
std::vector< MantidVec > fracArea
A vector that holds the 1D vectors for the fractional area.
bool isFinalized() const
Returns if finalize has been called.
Concrete workspace implementation.
Implements a copy on write data template.
std::shared_ptr< const RebinnedOutput > RebinnedOutput_const_sptr
shared pointer to a const RebinnedOutput
std::shared_ptr< RebinnedOutput > RebinnedOutput_sptr
shared pointer to the RebinnedOutput class
Helper class which provides the Collimation Length for SANS instruments.
std::vector< double > MantidVec
typedef for the data storage used in Mantid matrix workspaces