ITK  6.0.0
Insight Toolkit
Public Types | Static Public Member Functions | List of all members
itk::Statistics::MeasurementVectorTraits Class Reference

#include <itkMeasurementVectorTraits.h>

Detailed Description

Definition at line 40 of file itkMeasurementVectorTraits.h.

Public Types

using AbsoluteFrequencyType = InstanceIdentifier
 
using InstanceIdentifier = IdentifierType
 
using MeasurementVectorLength = vcl_size_t
 
using RelativeFrequencyType = NumericTraits< AbsoluteFrequencyType >::RealType
 
using TotalAbsoluteFrequencyType = NumericTraits< AbsoluteFrequencyType >::AccumulateType
 
using TotalRelativeFrequencyType = NumericTraits< RelativeFrequencyType >::AccumulateType
 

Static Public Member Functions

template<typename TValue >
static MeasurementVectorLength Assert (const Array< TValue > &a, const MeasurementVectorLength l, const char *errMsg="Length Mismatch")
 
template<typename TValue >
static MeasurementVectorLength Assert (const Array< TValue > *a, const MeasurementVectorLength l, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , typename TValue2 >
static MeasurementVectorLength Assert (const Array< TValue1 > &a, const Array< TValue2 > &b, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , typename TValue2 >
static MeasurementVectorLength Assert (const Array< TValue1 > *a, const Array< TValue2 > *b, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , unsigned int VLength, typename TValue2 >
static MeasurementVectorLength Assert (const FixedArray< TValue1, VLength > &, const Array< TValue2 > &b, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , unsigned int VLength, typename TValue2 , unsigned int VLength2>
static MeasurementVectorLength Assert (const FixedArray< TValue1, VLength > &, const FixedArray< TValue2, VLength2 > &, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , unsigned int VLength>
static MeasurementVectorLength Assert (const FixedArray< TValue1, VLength > &, const MeasurementVectorLength l, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , unsigned int VLength, typename TValue2 >
static MeasurementVectorLength Assert (const FixedArray< TValue1, VLength > &, const std::vector< TValue2 > &b, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , unsigned int VLength, typename TValue2 >
static MeasurementVectorLength Assert (const FixedArray< TValue1, VLength > &, const VariableLengthVector< TValue2 > &b, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , unsigned int VLength, typename TValue2 >
static MeasurementVectorLength Assert (const FixedArray< TValue1, VLength > *, const Array< TValue2 > *b, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , unsigned int VLength, typename TValue2 , unsigned int VLength2>
static MeasurementVectorLength Assert (const FixedArray< TValue1, VLength > *, const FixedArray< TValue2, VLength2 > *, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , unsigned int VLength>
static MeasurementVectorLength Assert (const FixedArray< TValue1, VLength > *, const MeasurementVectorLength l, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , unsigned int VLength, typename TValue2 >
static MeasurementVectorLength Assert (const FixedArray< TValue1, VLength > *, const std::vector< TValue2 > *b, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , unsigned int VLength, typename TValue2 >
static MeasurementVectorLength Assert (const FixedArray< TValue1, VLength > *, const VariableLengthVector< TValue2 > *b, const char *errMsg="Length Mismatch")
 
template<typename TValue >
static MeasurementVectorLength Assert (const std::vector< TValue > &a, const MeasurementVectorLength l, const char *errMsg="Length Mismatch")
 
template<typename TValue >
static MeasurementVectorLength Assert (const std::vector< TValue > *a, const MeasurementVectorLength l, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , typename TValue2 >
static MeasurementVectorLength Assert (const std::vector< TValue1 > &a, const std::vector< TValue2 > &b, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , typename TValue2 >
static MeasurementVectorLength Assert (const std::vector< TValue1 > *a, const std::vector< TValue2 > *b, const char *errMsg="Length Mismatch")
 
template<typename TValue >
static MeasurementVectorLength Assert (const VariableLengthVector< TValue > &a, const MeasurementVectorLength l, const char *errMsg="Length Mismatch")
 
template<typename TValue >
static MeasurementVectorLength Assert (const VariableLengthVector< TValue > *a, const MeasurementVectorLength l, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , typename TValue2 >
static MeasurementVectorLength Assert (const VariableLengthVector< TValue1 > &a, const VariableLengthVector< TValue2 > &b, const char *errMsg="Length Mismatch")
 
template<typename TValue1 , typename TValue2 >
static MeasurementVectorLength Assert (const VariableLengthVector< TValue1 > *a, const VariableLengthVector< TValue2 > *b, const char *errMsg="Length Mismatch")
 
template<typename TValue , unsigned int VLength>
static void Assign (FixedArray< TValue, VLength > &m, const TValue &v)
 
template<typename TArrayType >
static void Assign (TArrayType &m, const TArrayType &v)
 
template<typename TVectorType >
static bool IsResizable (const TVectorType &)
 

Member Typedef Documentation

◆ AbsoluteFrequencyType

Type defined for representing the frequency of measurement vectors

Definition at line 52 of file itkMeasurementVectorTraits.h.

◆ InstanceIdentifier

In the old framework, the FrequencyType is set to float. The problem is for large histograms the total frequency can be more than 1e+7, than increasing the frequency by one does not change the total frequency (because of lack of precision). Using double type will also ultimately fall into the same problem. Hence in the new statistics framework, InstanceIdentifier/FrequencyTypes are set to the largest possible integer on the machine

Definition at line 49 of file itkMeasurementVectorTraits.h.

◆ MeasurementVectorLength

Definition at line 57 of file itkMeasurementVectorTraits.h.

◆ RelativeFrequencyType

Definition at line 53 of file itkMeasurementVectorTraits.h.

◆ TotalAbsoluteFrequencyType

Definition at line 54 of file itkMeasurementVectorTraits.h.

◆ TotalRelativeFrequencyType

Definition at line 55 of file itkMeasurementVectorTraits.h.

Member Function Documentation

◆ Assert() [1/22]

template<typename TValue >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const Array< TValue > &  a,
const MeasurementVectorLength  l,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 304 of file itkMeasurementVectorTraits.h.

References itk::Array< TValue >::Size().

◆ Assert() [2/22]

template<typename TValue >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const Array< TValue > *  a,
const MeasurementVectorLength  l,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 319 of file itkMeasurementVectorTraits.h.

References itk::Array< TValue >::Size().

◆ Assert() [3/22]

template<typename TValue1 , typename TValue2 >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const Array< TValue1 > &  a,
const Array< TValue2 > &  b,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 101 of file itkMeasurementVectorTraits.h.

References itk::Array< TValue >::Size().

◆ Assert() [4/22]

template<typename TValue1 , typename TValue2 >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const Array< TValue1 > *  a,
const Array< TValue2 > *  b,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 112 of file itkMeasurementVectorTraits.h.

References itk::Array< TValue >::Size().

◆ Assert() [5/22]

template<typename TValue1 , unsigned int VLength, typename TValue2 >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const FixedArray< TValue1, VLength > &  ,
const Array< TValue2 > &  b,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 171 of file itkMeasurementVectorTraits.h.

References itk::Array< TValue >::Size().

◆ Assert() [6/22]

template<typename TValue1 , unsigned int VLength, typename TValue2 , unsigned int VLength2>
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const FixedArray< TValue1, VLength > &  ,
const FixedArray< TValue2, VLength2 > &  ,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 75 of file itkMeasurementVectorTraits.h.

◆ Assert() [7/22]

template<typename TValue1 , unsigned int VLength>
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const FixedArray< TValue1, VLength > &  ,
const MeasurementVectorLength  l,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 274 of file itkMeasurementVectorTraits.h.

◆ Assert() [8/22]

template<typename TValue1 , unsigned int VLength, typename TValue2 >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const FixedArray< TValue1, VLength > &  ,
const std::vector< TValue2 > &  b,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 241 of file itkMeasurementVectorTraits.h.

◆ Assert() [9/22]

template<typename TValue1 , unsigned int VLength, typename TValue2 >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const FixedArray< TValue1, VLength > &  ,
const VariableLengthVector< TValue2 > &  b,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

◆ Assert() [10/22]

template<typename TValue1 , unsigned int VLength, typename TValue2 >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const FixedArray< TValue1, VLength > *  ,
const Array< TValue2 > *  b,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 189 of file itkMeasurementVectorTraits.h.

References itk::Array< TValue >::Size().

◆ Assert() [11/22]

template<typename TValue1 , unsigned int VLength, typename TValue2 , unsigned int VLength2>
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const FixedArray< TValue1, VLength > *  ,
const FixedArray< TValue2, VLength2 > *  ,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 88 of file itkMeasurementVectorTraits.h.

◆ Assert() [12/22]

template<typename TValue1 , unsigned int VLength>
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const FixedArray< TValue1, VLength > *  ,
const MeasurementVectorLength  l,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 289 of file itkMeasurementVectorTraits.h.

◆ Assert() [13/22]

template<typename TValue1 , unsigned int VLength, typename TValue2 >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const FixedArray< TValue1, VLength > *  ,
const std::vector< TValue2 > *  b,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 259 of file itkMeasurementVectorTraits.h.

◆ Assert() [14/22]

template<typename TValue1 , unsigned int VLength, typename TValue2 >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const FixedArray< TValue1, VLength > *  ,
const VariableLengthVector< TValue2 > *  b,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

◆ Assert() [15/22]

template<typename TValue >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const std::vector< TValue > &  a,
const MeasurementVectorLength  l,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 368 of file itkMeasurementVectorTraits.h.

◆ Assert() [16/22]

template<typename TValue >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const std::vector< TValue > *  a,
const MeasurementVectorLength  l,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 383 of file itkMeasurementVectorTraits.h.

◆ Assert() [17/22]

template<typename TValue1 , typename TValue2 >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const std::vector< TValue1 > &  a,
const std::vector< TValue2 > &  b,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 149 of file itkMeasurementVectorTraits.h.

◆ Assert() [18/22]

template<typename TValue1 , typename TValue2 >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const std::vector< TValue1 > *  a,
const std::vector< TValue2 > *  b,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

Definition at line 160 of file itkMeasurementVectorTraits.h.

◆ Assert() [19/22]

template<typename TValue >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const VariableLengthVector< TValue > &  a,
const MeasurementVectorLength  l,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

◆ Assert() [20/22]

template<typename TValue >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const VariableLengthVector< TValue > *  a,
const MeasurementVectorLength  l,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

◆ Assert() [21/22]

template<typename TValue1 , typename TValue2 >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const VariableLengthVector< TValue1 > &  a,
const VariableLengthVector< TValue2 > &  b,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

◆ Assert() [22/22]

template<typename TValue1 , typename TValue2 >
static MeasurementVectorLength itk::Statistics::MeasurementVectorTraits::Assert ( const VariableLengthVector< TValue1 > *  a,
const VariableLengthVector< TValue2 > *  b,
const char *  errMsg = "Length Mismatch" 
)
inlinestatic

◆ Assign() [1/2]

template<typename TValue , unsigned int VLength>
static void itk::Statistics::MeasurementVectorTraits::Assign ( FixedArray< TValue, VLength > &  m,
const TValue &  v 
)
inlinestatic

Definition at line 405 of file itkMeasurementVectorTraits.h.

◆ Assign() [2/2]

template<typename TArrayType >
static void itk::Statistics::MeasurementVectorTraits::Assign ( TArrayType &  m,
const TArrayType &  v 
)
inlinestatic

◆ IsResizable()

template<typename TVectorType >
static bool itk::Statistics::MeasurementVectorTraits::IsResizable ( const TVectorType &  )
inlinestatic

Definition at line 61 of file itkMeasurementVectorTraits.h.

References itk::NumericTraits< T >::GetLength().


The documentation for this class was generated from the following file: