jupyter_analysis_tools.distrib.Distribution

class jupyter_analysis_tools.distrib.Distribution(xvec, yvec, uvec, xlabel=None, maxPeakCount=None)[source]

Bases: object

__init__(xvec, yvec, uvec, xlabel=None, maxPeakCount=None)[source]

Methods

__init__(xvec, yvec, uvec[, xlabel, ...])

getBarWidth(xvec)

moments()

peakData(peakRange)

peakDistrPar([plotAxes, plotAxisStart])

plot(ax, distPar[, name])

plot complete distribution as loaded from file

plotPeak(peakRange, mom, momLo, momHi, dp, ...)

showFullRange: Set the x range to cover the whole distribution instead of the peak only.

uncertRatioMedian(peakRange)

Attributes

color

peaks

plotAxes

plotAxisIdx

u

x

xlabel

y

plot(ax, distPar, name='')[source]

plot complete distribution as loaded from file

plotPeak(peakRange, mom, momLo, momHi, dp, dpLo, dpHi, showFullRange=False, ax=None)[source]

showFullRange: Set the x range to cover the whole distribution instead of the peak only.