Ignore:
Timestamp:
Feb 26, 2008, 2:25:19 PM (14 years ago)
Author:
Markus Ringnér
Message:

Refs #318

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/classifier/NBC.h

    r1152 r1157  
    5252  public:
    5353    ///
    54     /// Constructor taking the training data, the target vector.
     54    /// @brief Constructor
    5555    ///
    56     NBC(const MatrixLookup&, const Target&);
     56    NBC(void);
     57   
     58
     59    ///
     60    /// @brief Destructor
     61    ///
     62    virtual ~NBC();
     63
     64
     65    NBC* make_classifier(void) const;
    5766   
    5867    ///
    59     /// Constructor taking the training data with weights, the target
    60     /// vector, the distance measure, and a weight matrix for the
    61     /// training data as input.
    62     ///
    63     NBC(const MatrixLookupWeighted&, const Target&);
    64 
    65     virtual ~NBC();
    66 
    67     const DataLookup2D& data(void) const;
    68 
    69 
    70     NBC* make_classifier(const DataLookup2D&,
    71                          const Target&) const;
    72    
    73     ///
    74     /// Train the classifier using the training data.
     68    /// Train the classifier using training data and targets.
    7569    ///
    7670    /// For each class mean and variance are estimated for each
     
    8175    /// specific label.
    8276    ///
    83     void train();
     77    void train(const MatrixLookup&, const Target&);
     78
     79    ///
     80    /// Train the classifier using weighted training data and targets.
     81    ///
     82    void train(const MatrixLookupWeighted&, const Target&);
     83
    8484
    8585   
     
    106106    utility::Matrix centroids_;
    107107    utility::Matrix sigma2_;
    108     const DataLookup2D& data_;
    109108
    110109    double sum_logsigma(size_t i) const;
Note: See TracChangeset for help on using the changeset viewer.