Changeset 228 for trunk/src/kNNI.h


Ignore:
Timestamp:
Feb 1, 2005, 3:06:51 PM (18 years ago)
Author:
Peter
Message:

moved estimation from constructor, added function telling which rows were not imputed (due too many missing values).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kNNI.h

    r178 r228  
    2525  {
    2626  public:
     27    ///
     28    /// Constructor
     29    ///
     30    kNNI(const gslapi::matrix& matrix,const gslapi::matrix& weight,
     31         const u_int neighbours);
     32
     33    ///
    2734    /// Perform kNNI on data in \a matrix with binary uncertainty
    2835    /// weights in \a weight using \a neighbours for the new impute
    2936    /// value.
    3037    ///
    31     /// @note The algorithm is initiated within the constructor and
    32     /// the result is fetched with the NNI::imputed_data method.
    33     kNNI(const gslapi::matrix& matrix,const gslapi::matrix& weight,
    34          const u_int neighbours);
     38    size_t estimate(void);
    3539
    3640  private:
    37     void estimate(void);
    38 
    3941    vector<u_int> mv_rows_; // index to rows that have values to estimate
    4042  };
Note: See TracChangeset for help on using the changeset viewer.