00001 #ifndef _BETA_FISHERBAYESLOGREG_
00002
00003 #include <denseFisherMetric.h>
00004
00005 class fisherBayesLogReg: public denseFisherMetric
00006 {
00007
00008 public:
00009
00010 explicit fisherBayesLogReg(MatrixXd& data, VectorXd& t, double alpha);
00011 ~fisherBayesLogReg() {};
00012
00013 double V();
00014 const VectorXd& gradV();
00015
00016 private:
00017
00019 double mAlpha;
00020
00022 VectorXd& mT;
00023 MatrixXd& mData;
00024
00026 VectorXd mS;
00027
00028 void fComputeG();
00029
00030 void fComputeGradG(int i);
00031
00032
00033 };
00034
00035 #define _BETA_FISHERBAYESLOGREG_
00036 #endif