File sphere.hpp

template<typename Point>
struct GetDirection

Public Types

typedef Point::FT NT

Public Static Functions

template<typename RandomNumberGenerator>
static inline Point apply(unsigned int const &dim, RandomNumberGenerator &rng, bool normalize = true)
template<typename NT>
struct GetDirection<CorreMatrix<NT>>
#include <sphere.hpp>

Return a random direction for sampling correlation matrices with matrix PointType.

Public Static Functions

template<typename RandomNumberGenerator>
static inline CorreMatrix<NT> apply(unsigned int const &dim, RandomNumberGenerator &rng, bool normalize = true)
template<typename Point>
struct GetPointInDsphere

Public Static Functions

template<typename NT, typename RandomNumberGenerator>
static inline Point apply(unsigned int const &dim, NT const &radius, RandomNumberGenerator &rng)
template<typename Point>
struct GetPointOnDsphere

Public Static Functions

template<typename NT, typename RandomNumberGenerator>
static inline Point apply(unsigned int const &dim, NT const &radius, RandomNumberGenerator &rng)
template<typename Point>
struct SBDirection

Public Types

typedef Point::FT NT
typedef Eigen::Matrix<NT, Eigen::Dynamic, Eigen::Dynamic> MT
typedef Eigen::Matrix<NT, Eigen::Dynamic, 1> VT

Public Static Functions

template<typename RandomNumberGenerator>
static inline Point apply(unsigned int dim, const VT &A_row_k, RandomNumberGenerator &rng)