Adjusted CPU and GPU centroid methods to achieve the same results again. Fixed...

Adjusted CPU and GPU centroid methods to achieve the same results again. Fixed Matplotlib tests accordingly

Signed-off-by: Jan André Reuter <jan.andre.reuter@hotmail.de>
4 jobs for gpu-optimization in 4 minutes and 52 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #104231
gpu docker
lint:python3

00:00:46

passed #104232
gpu docker
test:python3

00:02:20

 
  Install
passed #104233
gpu docker
install:python3

00:00:55

 
  Pack
passed #104234
gpu docker
pack:python3

00:00:50