42#include "Rtkpp/include/STK_RcppTraits.h"
48template<
typename Type>
struct Arithmetic;
49template<
typename Type>
struct IdTypeImpl;
64 Rtype_ = hidden::RcppTraits<Real>::Rtype_
70 static inline Real NA()
throw() {
return std::numeric_limits<Real>::quiet_NaN();}
72 static const bool has_quiet_NaN =
false;
76 static inline bool isNA(
Real const& x)
throw() {
return !(x==x);}
81 {
return ( (x < -std::numeric_limits<Real>::max())||(x > std::numeric_limits<Real>::max()));}
108struct Arithmetic<const
Real>
112 Rtype_ = hidden::RcppTraits<Real>::Rtype_
115 static const bool hasNA =
true;
117 static inline Real NA() throw() {
return std::numeric_limits<Real>::quiet_NaN();}
119 static const bool has_quiet_NaN =
false;
123 static inline bool isNA(
Real const& x)
throw() {
return !(x==x);}
128 {
return ( (x < -std::numeric_limits<Real>::max())||(x > std::numeric_limits<Real>::max()));}
141struct IdTypeImpl<const
Real>
171 std::map<String, Real>::const_iterator
it=
mapping.find(
str);
197 std::map<Real, String>::const_iterator
it=
mapping.find(type);
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
bool isNA(Type const &x)
utility method allowing to know if a value is a NA (Not Available) value
String typeToString< Real >(Real const &value, std::ios_base &(*f)(std::ios_base &))
specialization for Real
String realToString(Real const &value, std::ios_base &(*f)(std::ios_base &)=std::dec)
Convert a Real to a String.
Real stringToReal(String const &str)
Convert a String to a Real.
String stringNa
Representation of a Not Available value.
Real stringToType< Real >(String const &str)
specialization for Real
IdType
Id for the Type of a variable.
@ real_
Quantitative type.
std::basic_string< Char > String
STK fundamental type of a String.
double Real
STK fundamental type of Real values.
std::basic_ostringstream< Char > ostringstream
ostringstream (ostringstream) for Char
std::basic_istringstream< Char > istringstream
istringstream for Char
The namespace STK is the main domain space of the Statistical ToolKit project.
static bool isNA(Real const &x)
Test if x is a Non Available (NA) special number.
static bool isInfinite(Real const &x)
static bool isFinite(Real const &x)
Arithmetic properties of STK fundamental types.
static bool isFinite(Type const &x)
static bool isInfinite(Type const &x)
static const bool hasNA
True if the type has a representation for a "Not Available."
static Type NA()
Adding a Non Available (NA) special number.
static bool isNA(Type const &x)
static Base::IdType returnType()
Give the IdType of the type Real.
Implementation of the return type.
static Base::IdType returnType()