1 #ifndef _theplu_yat_utility_nni_ 2 #define _theplu_yat_utility_nni_ 89 const unsigned int neighbours);
91 virtual ~
NNI(
void) {};
105 virtual unsigned int estimate(
void)=0;
115 const std::vector<size_t>&
not_imputed(
void)
const;
122 std::vector<std::pair<size_t,double> >
129 const std::vector<std::pair<size_t,double> >&)
const;
virtual unsigned int estimate(void)=0
Function doing the imputation.
Definition: MatrixBase.h:54
The Department of Theoretical Physics namespace as we define it.
const utility::Matrix & imputed_data(void) const
const std::vector< size_t > & not_imputed(void) const
NNI(const utility::MatrixBase &matrix, const utility::MatrixBase &weight, const unsigned int neighbours)
std::vector< std::pair< size_t, double > > calculate_distances(const size_t) const
std::vector< size_t > nearest_neighbours(const size_t, const std::vector< std::pair< size_t, double > > &) const
const utility::MatrixBase & weight_
Definition: NNI.h:153
const utility::MatrixBase & data_
Definition: NNI.h:133
unsigned int neighbours_
Definition: NNI.h:143
std::vector< size_t > not_imputed_
Definition: NNI.h:148
Interface to GSL matrix.
Definition: Matrix.h:104
Interface class for nearest neighbour imputation (NNI) algorithms.
Definition: NNI.h:80
utility::Matrix imputed_data_
Definition: NNI.h:138