mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 789371 - fix min/max/n_buckets for boolean and flag histograms; r=taras
This commit is contained in:
parent
5e3ccaf633
commit
12e1a56ae0
@ -27,8 +27,6 @@ def check_numeric_limits(dmin, dmax, n_buckets):
|
|||||||
|
|
||||||
def linear_buckets(dmin, dmax, n_buckets):
|
def linear_buckets(dmin, dmax, n_buckets):
|
||||||
check_numeric_limits(dmin, dmax, n_buckets)
|
check_numeric_limits(dmin, dmax, n_buckets)
|
||||||
if n_buckets == 2:
|
|
||||||
return [0, 1, 2]
|
|
||||||
ret_array = [0] * n_buckets
|
ret_array = [0] * n_buckets
|
||||||
dmin = float(dmin)
|
dmin = float(dmin)
|
||||||
dmax = float(dmax)
|
dmax = float(dmax)
|
||||||
@ -176,7 +174,7 @@ associated with the histogram. Returns None if no guarding is necessary."""
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def boolean_flag_bucket_parameters(definition):
|
def boolean_flag_bucket_parameters(definition):
|
||||||
return (0, 1, 2)
|
return (1, 2, 3)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def linear_bucket_parameters(definition):
|
def linear_bucket_parameters(definition):
|
||||||
|
Loading…
Reference in New Issue
Block a user