def TwoDimensionallyHistogram(xnum, xlow, xhigh, xquantity, ynum, ylow, yhigh, yquantity, selection=unweighted): """Convenience function for creating a conventional, two-dimensional histogram.""" return Select.ing(selection, Bin.ing(xnum, xlow, xhigh, xquantity, Bin.ing(ynum, ylow, yhigh, yquantity)))
def ProfileErr(num, low, high, binnedQuantity, averagedQuantity, selection=unweighted): """Convenience function for creating a physicist's "profile plot," which is a Profile with variances.""" return Select.ing( selection, Bin.ing(num, low, high, binnedQuantity, Deviate.ing(averagedQuantity)))
def Profile(num, low, high, binnedQuantity, averagedQuantity, selection=unweighted): """Convenience function for creating binwise averages.""" return Select.ing( selection, Bin.ing(num, low, high, binnedQuantity, Average.ing(averagedQuantity)))
def Histogram(num, low, high, quantity=identity): """Create a conventional histogram that is capable of being filled and added. Parameters: num (int): the number of bins; must be at least one. low (float): the minimum-value edge of the first bin. high (float): the maximum-value edge of the last bin; must be strictly greater than `low`. quantity (function returning float or string): function that computes the quantity of interest from the data. pass on all values by default. If a string is given, quantity is set to identity(string), in which case that column is picked up from a pandas df. """ return Bin.ing(num, low, high, quantity, Count.ing(), Count.ing(), Count.ing(), Count.ing())
def HistogramCut(num, low, high, quantity=identity, selection=unweighted): """Create a conventional histogram that is capable of being filled and added, with a selection cut. Parameters: num (int): the number of bins; must be at least one. low (float): the minimum-value edge of the first bin. high (float): the maximum-value edge of the last bin; must be strictly greater than `low`. quantity (function returning float or string): function that computes the quantity of interest from the data. pass on all values by default. If a string is given, quantity is set to identity(string), in which case that column is picked up from a pandas df. selection (function returning boolean): function that computes if data point is accepted or not. default is: lamba x: True """ return Select.ing(selection, Bin.ing(num, low, high, quantity, Count.ing(), Count.ing(), Count.ing(), Count.ing()))
def ProfileErr(num, low, high, binnedQuantity, averagedQuantity): """Convenience function for creating a profile plot This is a Profile with variances. """ return Bin.ing(num, low, high, binnedQuantity, Deviate.ing(averagedQuantity))
def Profile(num, low, high, binnedQuantity, averagedQuantity): """Convenience function for creating binwise averages.""" return Bin.ing(num, low, high, binnedQuantity, Average.ing(averagedQuantity))
def Histogram(num, low, high, quantity, selection=unweighted): """Convenience function for creating a conventional histogram.""" return Select.ing( selection, Bin.ing(num, low, high, quantity, Count.ing(), Count.ing(), Count.ing(), Count.ing()))
def ProfileErr(num, low, high, binnedQuantity, averagedQuantity, selection=unweighted): """Convenience function for creating a physicist's "profile plot," which is a Profile with variances.""" return Select.ing(selection, Bin.ing(num, low, high, binnedQuantity, Deviate.ing(averagedQuantity)))
def Profile(num, low, high, binnedQuantity, averagedQuantity, selection=unweighted): """Convenience function for creating binwise averages.""" return Select.ing(selection, Bin.ing(num, low, high, binnedQuantity, Average.ing(averagedQuantity)))
def Histogram(num, low, high, quantity, selection=unweighted): """Convenience function for creating a conventional histogram.""" return Select.ing(selection, Bin.ing(num, low, high, quantity, Count.ing(), Count.ing(), Count.ing(), Count.ing()))