Vita
Classes | Namespaces | Typedefs
primitive.h File Reference

Go to the source code of this file.

Classes

class  vita::ga::integer
 
class  vita::ga::real
 Mainly used for differential evolution. More...
 

Namespaces

namespace  vita
 The main namespace for the project.
 

Typedefs

using vita::ga::base_t = terminal_param_t
 We assume that errors during floating-point operations aren't terminal error. More...
 

Detailed Description

Remarks
This file is part of VITA.
License\n
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/

Definition in file primitive.h.

Typedef Documentation

◆ base_t

using vita::ga::base_t = typedef terminal_param_t

We assume that errors during floating-point operations aren't terminal error.

So we dont't try to prevent domain errors (e.g. square root of a negative number) or range error (e.g. pow(10.0, 1e6)) checking arguments beforehand (domain errors could be prevented by carefully bounds checking the arguments before calling functions and taking alternative action if the bounds are violated; range errors usually can not be prevented, as they are dependent on the implementation of floating-point numbers, as well as the function being applied). Instead we detect them and take alternative action (usually returning an empty value).

Definition at line 33 of file primitive.h.