TOBI SignalServer
0.1
|
void tobiss::SampleBlock< T >::sort | ( | std::vector< T > & | v, |
std::vector< boost::uint32_t > | order, | ||
boost::uint32_t | nr_blocks | ||
) | [private] |
Sort a given sample vector by an given order (unordered) vector.
[in] | v | A vector containing samples to be ordered. |
[in] | order | A vector containing indices to order (must be in the same order like v, blocksize >1 is allowed). |
[in] | nr_blocks | The number of blocks in vector v. |
Sort sorts two vectors v and order, whereby values stored in order (has to be unordered) are used to order both v and order. Bubble-sort is used as a sorting algorithm.
Definition at line 536 of file sample_block.h.