43#include "Rtkpp/include/STK_RcppTraits.h"
60 Rtype_ = hidden::RcppTraits<Integer>::Rtype_
66 static inline Integer NA()
throw() {
return std::numeric_limits<Integer>::min();}
71 {
return (x==std::numeric_limits<Integer>::min());}
74 static inline Integer min()
throw() {
return std::numeric_limits<Integer>::min() +1; }
103struct Arithmetic<const
Integer>
107 Rtype_ = hidden::RcppTraits<const Integer>::Rtype_
110 static const bool hasNA =
true;
112 static inline Integer NA() throw() {
return std::numeric_limits<Integer>::min();}
117 {
return (x==std::numeric_limits<Integer>::min());}
120 static inline Integer min() throw() {
return std::numeric_limits<Integer>::min() +1; }
135struct IdTypeImpl<const
Integer>
165 std::map<String, Integer>::const_iterator
it=
mapping.find(
str);
191 std::map<Integer, String>::const_iterator
it=
mapping.find(value);
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
String intToString(Integer const &value, std::ios_base &(*f)(std::ios_base &)=std::dec)
Convert an Integer to a String.
Integer stringToInt(String const &str)
Convert a String to an Integer.
String typeToString< Integer >(Integer const &t, std::ios_base &(*f)(std::ios_base &))
specialization for Integer
Integer stringToType< Integer >(String const &s)
specialization for Integer
String stringNa
Representation of a Not Available value.
IdType
Id for the Type of a variable.
@ integer_
Qualitative type.
std::basic_string< Char > String
STK fundamental type of a String.
int Integer
STK fundamental type of integer values.
hidden::SliceVisitorSelector< Derived, hidden::MinVisitor, Arrays::by_col_ >::type_result min(Derived const &A)
If A is a row-vector or a column-vector then the function will return the usual minimal value of the ...
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 isFinite(Integer const &x)
static bool isNA(Integer const &x)
Test if x is a Non Available (NA) special number.
static Integer min()
We are using the minimal value of the Integer type for NA values, thus we add one in order to compute...
static bool isInfinite(Integer const &x)
static Integer NA()
Adding a Non Available (NA) special number.
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 Integer.
Implementation of the return type.
static Base::IdType returnType()