mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-16 04:48:23 +01:00
fix: apply weights to output values (rates) instead of input values
This commit is contained in:
parent
d5d098d6cd
commit
f7d8f8751a
@ -90,7 +90,7 @@ inverseDistanceWeighting(const std::vector<std::int32_t> &to_calc,
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
for (int j = 0; j < data_set_n; j++) {
|
for (int j = 0; j < data_set_n; j++) {
|
||||||
key_delta += weights[j] * input[j][key_comp_i];
|
key_delta += weights[j] * output[j][key_comp_i];
|
||||||
}
|
}
|
||||||
|
|
||||||
key_delta /= inv_sum;
|
key_delta /= inv_sum;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user