Defines a set of three points (A, U, B) for bracketing a directional minimum. More...
#include <learning_rate_algorithm.h>
Public Member Functions | |
Triplet () | |
Default constructor. More... | |
virtual | ~Triplet () |
Destructor. More... | |
bool | operator== (const Triplet &other_triplet) const |
type | get_length () const |
pair< type, type > | minimum () const |
string | struct_to_string () const |
Writes a string with the values of A, U and B. More... | |
void | print () const |
Prints the triplet points to the standard output. More... | |
void | check () const |
Public Attributes | |
pair< type, type > | A |
Left point of the triplet. More... | |
pair< type, type > | U |
Interior point of the triplet. More... | |
pair< type, type > | B |
Right point of the triplet. More... | |
Defines a set of three points (A, U, B) for bracketing a directional minimum.
Definition at line 63 of file learning_rate_algorithm.h.
|
inline |
Default constructor.
Definition at line 67 of file learning_rate_algorithm.h.
|
inlinevirtual |
Destructor.
Definition at line 76 of file learning_rate_algorithm.h.
|
inline |
Checks that the points A, U and B define a minimum. That is, a < u < b, fa > fu and fu < fb. If some of that conditions is not satisfied, an exception is thrown.
Definition at line 143 of file learning_rate_algorithm.h.
|
inline |
Definition at line 99 of file learning_rate_algorithm.h.
|
inline |
Definition at line 105 of file learning_rate_algorithm.h.
|
inline |
Equal to operator. It compares this triplet with another triplet. It returns true if both triplets have the same points A, U and B, and false otherwise. @ param other_triplet Triplet to be compared with.
Definition at line 85 of file learning_rate_algorithm.h.
|
inline |
Prints the triplet points to the standard output.
Definition at line 133 of file learning_rate_algorithm.h.
|
inline |
Writes a string with the values of A, U and B.
Definition at line 120 of file learning_rate_algorithm.h.
pair<type, type> A |
Left point of the triplet.
Definition at line 190 of file learning_rate_algorithm.h.
pair<type, type> B |
Right point of the triplet.
Definition at line 198 of file learning_rate_algorithm.h.
pair<type, type> U |
Interior point of the triplet.
Definition at line 194 of file learning_rate_algorithm.h.