Test-related classes and functions.
|
template<typename T > |
T | almost_max () |
| Value very close to the max of the type.
|
|
template<typename T > |
T | almost_min () |
| Value very close to the min of the type.
|
|
template<typename T > |
bool | approx (T test, T ref, double tol=0.01) |
| Check whether a test value is approximately equal to a reference value. More...
|
|
template<typename T > |
static Record< T > | generate_random_record (const std::string &k, const std::string &u, const std::string &c) |
| Generate a random record.
|
|
template<typename T > |
static Record< T > | generate_random_record (const std::string &type_name) |
| Generate a random record. More...
|
|
template<typename T > |
T | generate_random_value (T min=half_min< T >(), T max=half_max< T >()) |
| Generate a random value of given type.
|
|
template<typename T > |
std::vector< T > | generate_random_vector (long size, T min=half_min< T >(), T max=half_max< T >()) |
| Generate a random vector of given type and size.
|
|
template<typename T > |
T | half_max () |
| Half the max of the type.
|
|
template<typename T > |
T | half_min () |
| Half the min of the type.
|
|
template<typename TRaster , typename URaster > |
bool | raster_approx (const TRaster &test, const URaster &ref, double tol=0.01) |
| Check whether a test raster is approximately equal to a reference raster. More...
|
|
std::string | temporary_filename () |
| Valid name for temporary files.
|
|