bpp-core3  3.0.0
bpp::NumConstants Class Reference

this static class contains several useful constant values. More...

#include <Bpp/Numeric/NumConstants.h>

Static Public Member Functions

static double MEGA ()
 
static double KILO ()
 
static double DECI ()
 
static double CENTI ()
 
static double MILLI ()
 
static double MICRO ()
 
static double NANO ()
 
static double PICO ()
 
static double SMALL ()
 
static double TINY ()
 
static double VERY_TINY ()
 
static double VERY_BIG ()
 
static double PI ()
 
Golden ratio.

The golden ratio, $\phi$ is equal to $\frac{1+\sqrt{5}}{2} = 1.6180339887498948482\ldots$. We also define $R=\phi-1$ and $C = 1 - R$.

static double GOLDEN_RATIO_PHI ()
 
static double GOLDEN_RATIO_R ()
 
static double GOLDEN_RATIO_C ()
 
Define those constants in case they would not be available in stl/limits.
static double INF ()
 
static double PINF ()
 
static double MINF ()
 
static double NaN ()
 

Detailed Description

this static class contains several useful constant values.

This classe uses function in order to avoid the infamous "static initialization order fiasco". C++0x solves this...

Definition at line 56 of file NumConstants.h.

Member Function Documentation

◆ CENTI()

static double bpp::NumConstants::CENTI ( )
inlinestatic

Definition at line 75 of file NumConstants.h.

◆ DECI()

static double bpp::NumConstants::DECI ( )
inlinestatic

Definition at line 74 of file NumConstants.h.

◆ GOLDEN_RATIO_C()

static double bpp::NumConstants::GOLDEN_RATIO_C ( )
inlinestatic

◆ GOLDEN_RATIO_PHI()

static double bpp::NumConstants::GOLDEN_RATIO_PHI ( )
inlinestatic

◆ GOLDEN_RATIO_R()

static double bpp::NumConstants::GOLDEN_RATIO_R ( )
inlinestatic

Definition at line 67 of file NumConstants.h.

References GOLDEN_RATIO_PHI().

Referenced by bpp::GoldenSectionSearch::doStep(), and GOLDEN_RATIO_C().

◆ INF()

static double bpp::NumConstants::INF ( )
inlinestatic

Definition at line 91 of file NumConstants.h.

◆ KILO()

static double bpp::NumConstants::KILO ( )
inlinestatic

Definition at line 73 of file NumConstants.h.

◆ MEGA()

static double bpp::NumConstants::MEGA ( )
inlinestatic

Definition at line 72 of file NumConstants.h.

◆ MICRO()

static double bpp::NumConstants::MICRO ( )
inlinestatic

Definition at line 77 of file NumConstants.h.

◆ MILLI()

static double bpp::NumConstants::MILLI ( )
inlinestatic

Definition at line 76 of file NumConstants.h.

◆ MINF()

static double bpp::NumConstants::MINF ( )
inlinestatic

◆ NaN()

static double bpp::NumConstants::NaN ( )
inlinestatic

Definition at line 94 of file NumConstants.h.

◆ NANO()

static double bpp::NumConstants::NANO ( )
inlinestatic

Definition at line 78 of file NumConstants.h.

◆ PI()

◆ PICO()

static double bpp::NumConstants::PICO ( )
inlinestatic

Definition at line 79 of file NumConstants.h.

◆ PINF()

static double bpp::NumConstants::PINF ( )
inlinestatic

◆ SMALL()

static double bpp::NumConstants::SMALL ( )
inlinestatic

◆ TINY()

◆ VERY_BIG()

◆ VERY_TINY()


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