#include <Point.h>
Public Member Functions | |
| Point () | |
| Point (const std::vector< parameter_t > &init, const std::vector< parameter_t > &min, const std::vector< parameter_t > &max) | |
| ~Point () | |
| void | Randomize () |
| double | operator* (const FeatureStats &) const |
| const Point | operator+ (const Point &) const |
| void | operator+= (const Point &) |
| const Point | operator* (float) const |
| void | Normalize () |
| void | NormalizeL2 () |
| void | NormalizeL1 () |
| void | GetAllWeights (std::vector< parameter_t > &w) const |
| statscore_t | GetScore () const |
| void | SetScore (statscore_t score) |
Static Public Member Functions | |
| static unsigned int | getdim () |
| static void | setdim (std::size_t d) |
| static unsigned int | getpdim () |
| static void | setpdim (std::size_t pd) |
| static void | set_optindices (const std::vector< unsigned int > &indices) |
| static const std::vector < unsigned int > & | get_optindices () |
| static bool | OptimizeAll () |
Friends | |
| class | Optimizer |
| std::ostream & | operator<< (std::ostream &o, const Point &P) |
Definition at line 16 of file Point.h.
| Point::Point | ( | const std::vector< parameter_t > & | init, | |
| const std::vector< parameter_t > & | min, | |||
| const std::vector< parameter_t > & | max | |||
| ) |
| static const std::vector<unsigned int>& Point::get_optindices | ( | ) | [inline, static] |
| void Point::GetAllWeights | ( | std::vector< parameter_t > & | w | ) | const |
Return a vector of size m_pdim where all weights have been put (including fixed ones).
Referenced by operator<<().

| static unsigned int Point::getdim | ( | ) | [inline, static] |
Definition at line 52 of file Point.h.
Referenced by BOOST_AUTO_TEST_CASE(), Optimizer::LineOptimize(), and SimpleOptimizer::TrueRun().

| statscore_t Point::GetScore | ( | ) | const [inline] |
Definition at line 99 of file Point.h.
Referenced by BOOST_AUTO_TEST_CASE(), Optimizer::Run(), RandomDirectionOptimizer::TrueRun(), and SimpleOptimizer::TrueRun().

| void Point::Normalize | ( | ) | [inline] |
Definition at line 89 of file Point.h.
References NormalizeL2().

| void Point::NormalizeL1 | ( | ) |
| void Point::NormalizeL2 | ( | ) |
Definition at line 120 of file Point.cpp.
Referenced by Normalize().

| double Point::operator* | ( | const FeatureStats & | F | ) | const |
Definition at line 62 of file Point.cpp.
References FeatureStats::get(), and OptimizeAll().

| void Point::operator+= | ( | const Point & | p2 | ) |
| static bool Point::OptimizeAll | ( | ) | [inline, static] |
Definition at line 66 of file Point.h.
Referenced by operator*().

| void Point::Randomize | ( | ) |
Definition at line 52 of file Point.cpp.
References CHECK.
Referenced by RandomOptimizer::TrueRun(), RandomDirectionOptimizer::TrueRun(), and SimpleOptimizer::TrueRun().

| static void Point::set_optindices | ( | const std::vector< unsigned int > & | indices | ) | [inline, static] |
| static void Point::setdim | ( | std::size_t | d | ) | [inline, static] |
Definition at line 53 of file Point.h.
Referenced by BOOST_AUTO_TEST_CASE(), and main().

| static void Point::setpdim | ( | std::size_t | pd | ) | [inline, static] |
| void Point::SetScore | ( | statscore_t | score | ) | [inline] |
Definition at line 100 of file Point.h.
Referenced by Optimizer::LineOptimize(), Optimizer::Run(), and RandomOptimizer::TrueRun().

| std::ostream& operator<< | ( | std::ostream & | o, | |
| const Point & | P | |||
| ) | [friend] |
Write the Whole featureweight to a stream (ie m_pdim float).
1.5.9