mlpack  2.2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
GDTestFunction Class Reference

Very, very simple test function which is the composite of three other functions. More...

Public Member Functions

 GDTestFunction ()
 Nothing to do for the constructor. More...
 
double Evaluate (const arma::mat &coordinates) const
 Evaluate a function. More...
 
arma::mat GetInitialPoint () const
 Get the starting point. More...
 
void Gradient (const arma::mat &coordinates, arma::mat &gradient) const
 Evaluate the gradient of a function. More...
 

Detailed Description

Very, very simple test function which is the composite of three other functions.

The gradient is not very steep far away from the optimum, so a larger step size may be required to optimize it in a reasonable number of iterations.

Definition at line 25 of file test_function.hpp.

Constructor & Destructor Documentation

GDTestFunction ( )
inline

Nothing to do for the constructor.

Definition at line 29 of file test_function.hpp.

Member Function Documentation

double Evaluate ( const arma::mat &  coordinates) const

Evaluate a function.

arma::mat GetInitialPoint ( ) const
inline

Get the starting point.

Definition at line 32 of file test_function.hpp.

void Gradient ( const arma::mat &  coordinates,
arma::mat &  gradient 
) const

Evaluate the gradient of a function.


The documentation for this class was generated from the following file: