Rosetta 3.3
Namespaces | Functions
src/numeric/random/random_permutation.hh File Reference

Reorder the elements in a vector using a RNG object. More...

#include <numeric/random/random.hh>
#include <utility/vector0.hh>
#include <utility/vector1.hh>
#include <algorithm>
#include <cmath>
#include <iostream>

Namespaces

namespace  numeric
 

A 1D histogram based upon a map structure.


namespace  numeric::random

Functions

template<class T >
void numeric::random::random_permutation (utility::vector1< T > &vect, RandomGenerator &rg)
template<class T >
void numeric::random::random_permutation (utility::vector0< T > &vect, RandomGenerator &rg)
template<class T >
void numeric::random::random_permutation (std::vector< T > &vect, RandomGenerator &rg)
template<typename RandomAccessIterator >
void numeric::random::random_permutation (RandomAccessIterator first, RandomAccessIterator last, RandomGenerator &rg)
 randomly shuffle elements of a sequence

Detailed Description

Reorder the elements in a vector using a RNG object.

Author:
Andrew Leaver-Fay
Remarks:
  • -
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines