-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
I noticed that the use of median seemed to favor the last value of the range instead of the whole range of values used in the interval. I checked the calculation and the median calculation only uses the last iterator value:
for (i = 0, sum = 0; (i <= 1024) && (sum < numtrue); i++)
{
sum += buckets[i];
}
to_input = size_value(0.0f,1024.0f,(float)i,in_ports[0].in_min,in_ports[0].in_max,0);
It looks like the buckets need to be sorted then the middle value in the list should be chosen.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels