#include "Input.h"
#include "Params.h"
#include "util/Exception.h"
#include <vector>
#include <iostream>
#include <cmath>
Go to the source code of this file.
Classes | |
class | Bin |
A Bin is a collection of items/files (a "volume"). More... | |
class | BinSet |
A set of bins. More... | |
class | Optimizer |
Base class for the search algorithms. More... | |
Defines | |
#define | ROUND(x) (x < 0 ? std::ceil( (x) - 0.5 ) : std::floor( (x) + 0.5 )) |
Round a given float number. | |
Functions | |
static bool | AlmostEqual (double u, double v) |
Compare two double considering the not exact float point representation. | |
std::ostream & | operator<< (std::ostream &s, const Optimizer &optimizer) |
Variables | |
const Params::Size_t | EPSILON = 0.000001 |
#define ROUND | ( | x | ) | (x < 0 ? std::ceil( (x) - 0.5 ) : std::floor( (x) + 0.5 )) |
static bool AlmostEqual | ( | double | u, | |
double | v | |||
) | [static] |
Compare two double considering the not exact float point representation.
References EPSILON.
Referenced by Bin::operator==(), and Individual::operator==().
std::ostream& operator<< | ( | std::ostream & | s, | |
const Optimizer & | optimizer | |||
) | [inline] |
References Optimizer::Write().
const Params::Size_t EPSILON = 0.000001 |
Referenced by AlmostEqual(), and Optimizer::Optimizer().