mlpack
Functions
dtree_impl.hpp File Reference
#include "dtree.hpp"
#include <stack>
#include <vector>
Include dependency graph for dtree_impl.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename ElemType , typename MatType >
void details::ExtractSplits (std::vector< std::pair< ElemType, size_t >> &splitVec, const MatType &data, size_t dim, const size_t start, const size_t end, const size_t minLeafSize)
 This one sorts and scand the given per-dimension extract and puts all splits in a vector, that can easily be iterated afterwards. More...
 
template<typename ElemType >
void details::ExtractSplits (std::vector< std::pair< ElemType, size_t >> &splitVec, const arma::Mat< ElemType > &data, size_t dim, const size_t start, const size_t end, const size_t minLeafSize)
 
template<typename ElemType >
void details::ExtractSplits (std::vector< std::pair< ElemType, size_t >> &splitVec, const arma::SpMat< ElemType > &data, size_t dim, const size_t start, const size_t end, const size_t minLeafSize)
 

Detailed Description

Author
Parikshit Ram (pram@.nosp@m.cc.g.nosp@m.atech.nosp@m..edu)
Ivan Georgiev (ivan@.nosp@m.jona.nosp@m.n.inf.nosp@m.o) (sparsification and optimizations)

Implementations of some declared functions in the Density Estimation Tree class.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.

Function Documentation

◆ ExtractSplits()

template<typename ElemType , typename MatType >
void details::ExtractSplits ( std::vector< std::pair< ElemType, size_t >> &  splitVec,
const MatType &  data,
size_t  dim,
const size_t  start,
const size_t  end,
const size_t  minLeafSize 
)

This one sorts and scand the given per-dimension extract and puts all splits in a vector, that can easily be iterated afterwards.

General implementation.