17 #ifndef QUALITYCONTROL_CALCULATORS_H 18 #define QUALITYCONTROL_CALCULATORS_H 27 double averageMD1Queue(
double rho);
33 double averageMG1Queue(
double rho,
double mean,
double stddev);
36 size_t numberOfMergerLayers(
size_t M0,
size_t R);
37 double mergersMemoryUsage(
size_t R,
size_t M0,
size_t objSize,
double T, std::function<
double(
double)> performance);
39 double mergersCpuUsage(
size_t R,
size_t M0,
double T, std::function<
double(
double)> performance);
42 std::tuple<double, double> mergerCosts(
double costCPU,
double costRAM,
size_t R,
int parallelism,
int mosSize,
43 double cycleDuration, std::function<
double(
double)> performance);
47 std::tuple<size_t, double, double> cheapestMergers(
double costCPU,
double costRAM,
int parallelism,
int mosSize,
48 double cycleDuration, std::function<
double(
double)> performance);
50 double qcTaskInputMemory(
double utilisation,
double avgInputMessage,
double stddevInputMessage);
52 double qcTaskCost(
double costCPU,
double costRAM,
double qcTaskCPU,
size_t qcTaskRAM,
double parallelData,
double avgInputMessage,
double stddevInputMessage);
55 #endif //QUALITYCONTROL_CALCULATORS_H Definition: Calculators.h:23