Use all events by default to determine dynamic binning
@@ -677,7 +677,7 @@ class FisherInformation:
histrange=None,
cuts=None,
efficiency_functions=None,
- n_events_dynamic_binning=100000,
+ n_events_dynamic_binning=None,
):
"""
Calculates the Fisher information in the one-dimensional histogram of an (parton-level or detector-level,
@@ -710,8 +710,10 @@ class FisherInformation:
Efficiencies. Each entry is a parseable Python expression that returns a float for the efficiency of one
component. Default value: None.
- n_events_dynamic_binning : int, optional
- Number of events used to calculate the dynamic binning (if histrange is None). Default value: 100000.
+ n_events_dynamic_binning : int or None, optional
+ Number of events used to calculate the dynamic binning (if histrange is None). If None, all events are used.
+ Note that these events are not shuffled, so if the events in the MadMiner file are sorted, using a value
+ different from None can cause issues. Default value: None.
Returns
-------
@@ -797,7 +799,7 @@ class FisherInformation:
histrange2=None,
cuts=None,
efficiency_functions=None,
- n_events_dynamic_binning=100000,
+ n_events_dynamic_binning=None,
):
"""
@@ -844,8 +846,10 @@ class FisherInformation:
Efficiencies. Each entry is a parseable Python expression that returns a float for the efficiency of one
component. Default value: None.
- n_events_dynamic_binning : int, optional
- Number of events used to calculate the dynamic binning (if histrange is None). Default value: 100000.
+ n_events_dynamic_binning : int or None, optional
+ Number of events used to calculate the dynamic binning (if histrange is None). If None, all events are used.
+ Note that these events are not shuffled, so if the events in the MadMiner file are sorted, using a value
+ different from None can cause issues. Default value: None.
Returns
-------
