Commit 54ca2ad6 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

moving SampleCounter to own file

parent d356e49b
......@@ -2,11 +2,6 @@
#include "utility/Assertion.hpp"
void SampleCounter::Update() {
M += dM;
dM = 0;
}
void Sums::Update(SampleSolution &fineSolution, SampleSolution &coarseSolution) {
double diffQ = fineSolution.Q - coarseSolution.Q; // Todo might be unstable!
Cost += fineSolution.Cost;
......
#ifndef EMPIRICMEASURES_HPP
#define EMPIRICMEASURES_HPP
#include "basics/Sample.hpp"
struct SampleCounter {
int M = 0;
int dM = 0;
SampleCounter() {};
#include "SampleCounter.hpp"
SampleCounter(int dM):
dM(dM) {}
SampleCounter(int M, int dM) :
M(M), dM(dM) {}
#include "basics/Sample.hpp"
void Update();
};
struct Sums {
double Q = 0.0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment