X-Boost  2.3.8
Classes | Functions
FeatureGenerator.h File Reference

method to generate Feature More...

#include "Utility/timer.h"
#include "Utility/random.h"

Go to the source code of this file.

Classes

class  FeatureGenerator< Feature >
 
class  StoredFeatureGenerator< TFeature >
 This generator uses a stored feature list. More...
 

Functions

template<class T >
bool RandomSampleFeature (std::vector< T > &out, const std::vector< T > &in, int n)
 
template<class FeatureGenerator >
void GenerateFeatures (std::vector< typename FeatureGenerator::FeatureType > &features, FeatureGenerator &generator)
 Fill vector of FeatureType using a FeatureGenerator object.
 

Detailed Description

method to generate Feature

Function Documentation

template<class T >
bool RandomSampleFeature ( std::vector< T > &  out,
const std::vector< T > &  in,
int  n 
)

random samples a vector of features