waterz icon indicating copy to clipboard operation
waterz copied to clipboard

HistogramQuantileProvider: why InitWithMax?

Open donglaiw opened this issue 2 years ago • 0 comments

Hey Jan,

I'm trying to get the 75 percentile for the affinity between two seg ids. However, during debugging, I found that with the defaultInitWithMax=true, the histogram will only have one value in the end (either clear()or return). Wonder what's the logic for InitWithMax? It seems that we just need to addAffinity for every input element?

Thanks D.

https://github.com/funkey/waterz/blob/8ccd0b308fed604d143577f128420da83ff444da/waterz/backend/HistogramQuantileProvider.hpp#L27

donglaiw avatar Apr 18 '22 03:04 donglaiw