numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of rectangles as proposed in [26] for num_collect::opt::adaptive_diagonal_curves. More...
#include <num_collect/opt/impl/adc_rectangle.h>
Public Types | |
using | ternary_vector_type = TernaryVector |
Type of ternary vectors. | |
using | value_type = Value |
Type of function values. | |
Public Member Functions | |
adc_rectangle (const ternary_vector_type &vertex, const value_type &ave_value) | |
Constructor. | |
auto | ave_value () const -> const value_type & |
Get the average function value. | |
auto | dist () const -> value_type |
Get the distance between center point and vertex. | |
auto | sample_points () const -> std::pair< ternary_vector_type, ternary_vector_type > |
Determine sampling points. | |
auto | vertex () const -> const ternary_vector_type & |
Get the vertex with lower first component. | |
Static Public Member Functions | |
static auto | determine_sample_points (const ternary_vector_type &lowest_vertex) -> std::pair< ternary_vector_type, ternary_vector_type > |
Determine sampling points. | |
Static Private Member Functions | |
static void | normalize_point (ternary_vector_type &point) |
Normalize point. | |
Private Attributes | |
value_type | ave_value_ |
Average function value. | |
ternary_vector_type | vertex_ |
A vertex with lower first component. | |
Class of rectangles as proposed in [26] for num_collect::opt::adaptive_diagonal_curves.
Value | Type of function values. |
TernaryVector | Type of ternary vectors. |
Definition at line 40 of file adc_rectangle.h.
using num_collect::opt::impl::adc_rectangle< Value, TernaryVector >::ternary_vector_type = TernaryVector |
Type of ternary vectors.
Definition at line 46 of file adc_rectangle.h.
using num_collect::opt::impl::adc_rectangle< Value, TernaryVector >::value_type = Value |
Type of function values.
Definition at line 43 of file adc_rectangle.h.
|
inline |
Constructor.
[in] | vertex | A vertex with lower components. |
[in] | ave_value | Average function value. |
Definition at line 54 of file adc_rectangle.h.
|
inlinenodiscard |
Get the average function value.
Definition at line 72 of file adc_rectangle.h.
|
inlinestaticnodiscard |
Determine sampling points.
[in] | lowest_vertex | A vertex with lower first component. |
Definition at line 109 of file adc_rectangle.h.
|
inlinenodiscard |
Get the distance between center point and vertex.
Definition at line 91 of file adc_rectangle.h.
|
inlinestaticprivate |
|
inlinenodiscard |
|
inlinenodiscard |
Get the vertex with lower first component.
Definition at line 63 of file adc_rectangle.h.
|
private |
Average function value.
Definition at line 171 of file adc_rectangle.h.
|
private |
A vertex with lower first component.
Definition at line 168 of file adc_rectangle.h.