13 #ifndef MLPACK_METHODS_RANN_RA_UTIL_HPP 14 #define MLPACK_METHODS_RANN_RA_UTIL_HPP 62 const size_t rangeUpperBound,
63 arma::uvec& distinctSamples);
static size_t MinimumSamplesReqd(const size_t n, const size_t k, const double tau, const double alpha)
Compute the minimum number of samples required to guarantee the given rank-approximation and success ...
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.
static void ObtainDistinctSamples(const size_t numSamples, const size_t rangeUpperBound, arma::uvec &distinctSamples)
Pick up desired number of samples (with replacement) from a given range of integers so that only the ...
see subsection cli_alt_reg_tut Alternate DET regularization The usual regularized error f $R_ alpha(t)\f$ of a node \f $t\f$ is given by
static double SuccessProbability(const size_t n, const size_t k, const size_t m, const size_t t)
Compute the success probability of obtaining 'k'-neighbors from a set of size 'n' within the top 't' ...