52template<
typename Type>
53inline Type
sign(Type
const& x, Type
const&
y = Type(1))
54{
return( (x<0) ? -
y :
y); }
73{
return( (x%2) == 1 ); }
84{
return( (x%2) == 0 ); }
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
bool isEven(int const &x)
is x an even number ?
bool isOdd(int const &x)
is x a odd number ?
Type sign(Type const &x, Type const &y=Type(1))
template sign value sign(x) * y: Type should be an integral type
Real frand()
frand() generate a Real uniform number.
Real norm(Real const &x, Real const &y)
Computation of sqrt(x^2 + y^2) without underflow or overflow.
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.