// // Reg.hpp // // Created by Marc Melikyan on 1/16/21. // #ifndef Reg_hpp #define Reg_hpp #include namespace MLPP{ class Reg{ public: double regTerm(std::vector weights, double lambda, double alpha, std::string reg); double regTerm(std::vector> weights, double lambda, double alpha, std::string reg); std::vector regWeights(std::vector weights, double lambda, double alpha, std::string reg); std::vector> regWeights(std::vector> weights, double lambda, double alpha, std::string reg); std::vector regDerivTerm(std::vector weights, double lambda, double alpha, std::string reg); std::vector> regDerivTerm(std::vector>, double lambda, double alpha, std::string reg); private: double regDerivTerm(std::vector weights, double lambda, double alpha, std::string reg, int j); double regDerivTerm(std::vector> weights, double lambda, double alpha, std::string reg, int i, int j); }; } #endif /* Reg_hpp */