@@ -53,12 +53,12 @@ def privacy_budget(self) -> float:
5353
5454 # Function to return the DP sum of all carrots eaten.
5555 def private_sum (self , privacy_budget : float ) -> float :
56- x = BoundedSum (privacy_budget , dtype = "float" )
56+ x = BoundedSum (privacy_budget , 0 , 100 , dtype = "float" )
5757 return x .quick_result (list (self ._df ["carrots_eaten" ]))
5858
5959 # Function to return the DP mean of all carrots eaten.
6060 def private_mean (self , privacy_budget : float ) -> float :
61- x = BoundedMean (privacy_budget , dtype = "float" )
61+ x = BoundedMean (privacy_budget , 0 , 100 , dtype = "float" )
6262 return x .quick_result (list (self ._df ["carrots_eaten" ]))
6363
6464 # Function to return the DP count of the number of animals who ate more than "limit" carrots.
@@ -73,7 +73,7 @@ def private_count_above(
7373 # Function to return the DP maximum of the number of carrots eaten by any one animal.
7474 def private_max (self , privacy_budget : float ) -> Union [int , float ]:
7575 # 0 and 150 are the upper and lower limits for the search bound.
76- x = Max (privacy_budget , 0 , 150 , dtype = "int" )
76+ x = Max (privacy_budget , 0 , 100 , dtype = "int" )
7777 return x .quick_result (list (self ._df ["carrots_eaten" ]))
7878
7979
0 commit comments