numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
num_prob_collect::opt::quadratic_function Class Reference

Quadratic function for test of optimization. More...

#include <num_prob_collect/opt/quadratic_function.h>

+ Collaboration diagram for num_prob_collect::opt::quadratic_function:

Public Types

using value_type = double
 Type of function values.
 
using variable_type = double
 Type of variables.
 

Public Member Functions

void evaluate_on (double variable)
 Evaluate function value on variable.
 
auto value () const -> const double &
 Get function value.
 

Private Attributes

double coeff_ {0.5}
 Coefficient.
 
double value_ {0.0}
 Function value.
 

Detailed Description

Quadratic function for test of optimization.

Definition at line 27 of file quadratic_function.h.

Member Typedef Documentation

◆ value_type

Type of function values.

Definition at line 32 of file quadratic_function.h.

◆ variable_type

Type of variables.

Definition at line 30 of file quadratic_function.h.

Member Function Documentation

◆ evaluate_on()

void num_prob_collect::opt::quadratic_function::evaluate_on ( double variable)
inline

Evaluate function value on variable.

Parameters
[in]variableVariable.

Definition at line 39 of file quadratic_function.h.

◆ value()

auto num_prob_collect::opt::quadratic_function::value ( ) const -> const double&
inlinenodiscard

Get function value.

Returns
Function value.

Definition at line 46 of file quadratic_function.h.

Member Data Documentation

◆ coeff_

double num_prob_collect::opt::quadratic_function::coeff_ {0.5}
private

Coefficient.

Definition at line 50 of file quadratic_function.h.

◆ value_

double num_prob_collect::opt::quadratic_function::value_ {0.0}
private

Function value.

Definition at line 53 of file quadratic_function.h.


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