ITK  6.0.0
Insight Toolkit
Public Types | Public Member Functions | Public Attributes | List of all members
itk::RandomPermutation Class Reference

#include <itkImageRandomNonRepeatingConstIteratorWithIndex.h>

Detailed Description

Produce a random permutation of a collection.

Definition at line 72 of file itkImageRandomNonRepeatingConstIteratorWithIndex.h.

+ Collaboration diagram for itk::RandomPermutation:

Public Types

using GeneratorPointer = typename Statistics::MersenneTwisterRandomVariateGenerator::Pointer
 

Public Member Functions

RandomPermutationoperator= (const RandomPermutation &it)
 
SizeValueType operator[] (SizeValueType i) const
 
 RandomPermutation (SizeValueType sz)
 
void ReinitializeSeed () const
 
void ReinitializeSeed (unsigned int seed) const
 
void SetPriority (SizeValueType i, SizeValueType priority) const
 
void Shuffle () const
 
 ~RandomPermutation ()
 

Public Attributes

GeneratorPointer m_Generator
 
NodeOfPermutationm_Permutation
 
SizeValueType m_Size
 

Member Typedef Documentation

◆ GeneratorPointer

Constructor & Destructor Documentation

◆ RandomPermutation()

itk::RandomPermutation::RandomPermutation ( SizeValueType  sz)
inline

◆ ~RandomPermutation()

itk::RandomPermutation::~RandomPermutation ( )
inline

Definition at line 126 of file itkImageRandomNonRepeatingConstIteratorWithIndex.h.

References m_Permutation.

Member Function Documentation

◆ operator=()

RandomPermutation & itk::RandomPermutation::operator= ( const RandomPermutation it)
inline

◆ operator[]()

SizeValueType itk::RandomPermutation::operator[] ( SizeValueType  i) const
inline

◆ ReinitializeSeed() [1/2]

void itk::RandomPermutation::ReinitializeSeed ( ) const
inline

Reinitialize the seed of the random number generator

Definition at line 130 of file itkImageRandomNonRepeatingConstIteratorWithIndex.h.

References m_Generator.

◆ ReinitializeSeed() [2/2]

void itk::RandomPermutation::ReinitializeSeed ( unsigned int  seed) const
inline

Definition at line 136 of file itkImageRandomNonRepeatingConstIteratorWithIndex.h.

References m_Generator.

◆ SetPriority()

void itk::RandomPermutation::SetPriority ( SizeValueType  i,
SizeValueType  priority 
) const
inline

◆ Shuffle()

void itk::RandomPermutation::Shuffle ( ) const
inline

Member Data Documentation

◆ m_Generator

GeneratorPointer itk::RandomPermutation::m_Generator

◆ m_Permutation

NodeOfPermutation* itk::RandomPermutation::m_Permutation

◆ m_Size

SizeValueType itk::RandomPermutation::m_Size

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