feat: convertibility of a quantity with a unit one with the raw value added

Resolves #553
This commit is contained in:
Mateusz Pusz
2024-07-14 18:31:11 +02:00
parent 0dfd323c4b
commit fcc16ae282
5 changed files with 191 additions and 11 deletions

View File

@@ -64,7 +64,7 @@ int main()
state next = initial_guess;
for (int index = 1; const auto& measurement : measurements) {
const state& previous = next;
const quantity gain = 1. / index * one;
const quantity gain = 1. / index;
const state current = state_update(previous, measurement, gain);
next = current;
print(index++, gain, measurement, current, next);