examples/softAbsBayesLogReg.h
00001 #ifndef _BETA_SOFTABSBAYESLOGREG_
00002 
00003 #include <softAbsMetric.h>
00004 
00005 class softAbsBayesLogReg: public softAbsMetric
00006 {
00007     
00008 public:
00009     
00010     explicit softAbsBayesLogReg(MatrixXd& data, VectorXd& t, double alpha);
00011     ~softAbsBayesLogReg() {};
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 fComputeH();
00029     
00030     void fComputeGradH(int i);
00031     
00032 };
00033 
00034 #define _BETA_SOFTABSBAYESLOGREG_
00035 #endif
 All Classes Functions Variables