numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class to search optimal regularization parameter using GCV. More...
#include <num_collect/regularization/implicit_gcv.h>
Public Types | |
using | data_type = typename solver_type::data_type |
Type of data. | |
using | scalar_type = typename solver_type::scalar_type |
Type of scalars. | |
using | solver_type = Solver |
Type of solvers. | |
Public Member Functions | |
implicit_gcv (solver_type &solver, const data_type &data, const data_type &initial_solution) | |
Constructor. | |
auto | noise_rate (scalar_type value) -> implicit_gcv & |
Set the rate of noise. | |
auto | num_samples (index_type value) -> implicit_gcv & |
Set the number of samples for approximation of denominator of GCV. | |
auto | opt_param () const -> scalar_type |
Get the optimal regularization parameter. | |
void | search () |
Search the optimal regularization parameter. | |
void | solve (data_type &solution) const |
Solver with the optimal regularization parameter. | |
Public Member Functions inherited from num_collect::logging::logging_mixin | |
logging_mixin (log_tag_view tag) | |
Constructor. | |
template<typename Child > | |
void | configure_child_algorithm_logger_if_exists (Child &child) |
Configure a logger of a child algorithm if exists. | |
auto | logger () const noexcept -> const num_collect::logging::logger & |
Access to the logger. | |
auto | logger () noexcept -> num_collect::logging::logger & |
Access to the logger. | |
Private Attributes | |
implicit_gcv_calculator< solver_type > | calculator_ |
Calculator of GCV. | |
scalar_type | opt_param_ {} |
Optimal regularization parameter. | |
opt::gaussian_process_optimizer< opt::any_objective_function< scalar_type(scalar_type)> > | optimizer_ {} |
Optimizer. | |
Class to search optimal regularization parameter using GCV.
Solver | Type of solvers. |
Definition at line 227 of file implicit_gcv.h.
using num_collect::regularization::implicit_gcv< Solver >::data_type = typename solver_type::data_type |
Type of data.
Definition at line 236 of file implicit_gcv.h.
using num_collect::regularization::implicit_gcv< Solver >::scalar_type = typename solver_type::scalar_type |
Type of scalars.
Definition at line 233 of file implicit_gcv.h.
using num_collect::regularization::implicit_gcv< Solver >::solver_type = Solver |
Type of solvers.
Definition at line 230 of file implicit_gcv.h.
|
inline |
Constructor.
[in] | solver | Solver. |
[in] | data | Data. |
[in] | initial_solution | Initial solution. |
Definition at line 245 of file implicit_gcv.h.
|
inline |
Set the rate of noise.
[in] | value | Value. |
Definition at line 309 of file implicit_gcv.h.
|
inline |
Set the number of samples for approximation of denominator of GCV.
[in] | value | Value. |
Definition at line 320 of file implicit_gcv.h.
|
inlinenodiscard |
Get the optimal regularization parameter.
Definition at line 294 of file implicit_gcv.h.
|
inline |
Search the optimal regularization parameter.
Definition at line 255 of file implicit_gcv.h.
|
inline |
Solver with the optimal regularization parameter.
Solution | Type of the solution. |
[out] | solution | Solution. |
Definition at line 297 of file implicit_gcv.h.
|
private |
Calculator of GCV.
Definition at line 327 of file implicit_gcv.h.
|
private |
Optimal regularization parameter.
Definition at line 335 of file implicit_gcv.h.
|
private |
Optimizer.
Definition at line 332 of file implicit_gcv.h.