1 #ifndef _theplu_yat_utility_nni_
2 #define _theplu_yat_utility_nni_
88 const unsigned int neighbours);
90 virtual ~
NNI(
void) {};
104 virtual unsigned int estimate(
void)=0;
114 const std::vector<size_t>&
not_imputed(
void)
const;
121 std::vector<std::pair<size_t,double> >
128 const std::vector<std::pair<size_t,double> >&)
const;
virtual unsigned int estimate(void)=0
Function doing the imputation.
std::vector< std::pair< size_t, double > > calculate_distances(const size_t) const
const utility::Matrix & data_
Definition: NNI.h:132
const utility::Matrix & imputed_data(void) const
const utility::Matrix & weight_
Definition: NNI.h:152
const std::vector< size_t > & not_imputed(void) const
unsigned int neighbours_
Definition: NNI.h:142
std::vector< size_t > not_imputed_
Definition: NNI.h:147
Interface to GSL matrix.
Definition: Matrix.h:63
NNI(const utility::Matrix &matrix, const utility::Matrix &weight, const unsigned int neighbours)
Interface class for nearest neighbour imputation (NNI) algorithms.
Definition: NNI.h:79
utility::Matrix imputed_data_
Definition: NNI.h:137
std::vector< size_t > nearest_neighbours(const size_t, const std::vector< std::pair< size_t, double > > &) const