mlpack
2.2.5
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
mlpack
methods
nystroem_method
ordered_selection.hpp
Go to the documentation of this file.
1
14
#ifndef MLPACK_METHODS_NYSTROEM_METHOD_ORDERED_SELECTION_HPP
15
#define MLPACK_METHODS_NYSTROEM_METHOD_ORDERED_SELECTION_HPP
16
17
#include <
mlpack/prereqs.hpp
>
18
19
namespace
mlpack {
20
namespace
kernel {
21
22
class
OrderedSelection
23
{
24
public
:
32
const
static
arma::Col<size_t>
Select
(
const
arma::mat&
/* unused */
,
33
const
size_t
m)
34
{
35
// This generates [0 1 2 3 ... (m - 1)].
36
return
arma::linspace<arma::Col<size_t> >(0, m - 1, m);
37
}
38
};
39
40
}
// namespace kernel
41
}
// namespace mlpack
42
43
#endif
mlpack::kernel::OrderedSelection::Select
static const arma::Col< size_t > Select(const arma::mat &, const size_t m)
Select the specified number of points in the dataset.
Definition:
ordered_selection.hpp:32
prereqs.hpp
The core includes that mlpack expects; standard C++ includes and Armadillo.
mlpack::kernel::OrderedSelection
Definition:
ordered_selection.hpp:22
Generated by
1.8.5