60 template<
typename TMeasurementVector >
64 ITK_DISALLOW_COPY_AND_ASSIGN(
Sample);
131 itkExceptionMacro(
"Attempting to change the measurement \
132 vector size of a non-empty Sample");
149 if ( defaultLength != s )
152 "Attempting to change the measurement \
153 vector size of a non-resizable vector type" );
166 const auto * thatConst =
dynamic_cast< const Self *
>( thatObject );
185 os << indent <<
"Length of measurement vectors in the sample: "
typename MeasurementVectorTraits::InstanceIdentifier InstanceIdentifier
virtual InstanceIdentifier Size() const =0
typename TMeasurementVector::ValueType ValueType
Define numeric traits for std::vector.
void Graft(const DataObject *thatObject) override
virtual const MeasurementVectorType & GetMeasurementVector(InstanceIdentifier id) const =0
virtual AbsoluteFrequencyType GetFrequency(InstanceIdentifier id) const =0
virtual void Graft(const DataObject *)
void PrintSelf(std::ostream &os, Indent indent) const override
Simulate a standard C array with copy semnatics.
virtual void SetMeasurementVectorSize(MeasurementVectorSizeType s)
static bool IsResizable(const TVectorType &)
void PrintSelf(std::ostream &os, Indent indent) const override
unsigned int MeasurementVectorSizeType
TMeasurementVector MeasurementVectorType
virtual void Modified() const
InstanceIdentifier AbsoluteFrequencyType
NumericTraits< AbsoluteFrequencyType >::AccumulateType TotalAbsoluteFrequencyType
IdentifierType InstanceIdentifier
A collection of measurements for statistical analysis.
Control indentation during Print() invocation.
MeasurementVectorSizeType m_MeasurementVectorSize
typename MeasurementVectorTraitsTypes< MeasurementVectorType >::ValueType MeasurementType
Base class for most ITK classes.
~Sample() override=default
Base class for all data objects in ITK.
virtual TotalAbsoluteFrequencyType GetTotalFrequency() const =0
MeasurementVectorTraits::AbsoluteFrequencyType AbsoluteFrequencyType