Stats

class kgpy.img.spikes.Stats(hist, hist_extent, x, thresh_pts_upper, thresh_pts_lower, fit_weights, poly_deg=1)

Bases: object

A class representing a statistical model of spikes in an image.

Parameters
__init__(hist, hist_extent, x, thresh_pts_upper, thresh_pts_lower, fit_weights, poly_deg=1)
Parameters
Return type

None

Attributes

poly_deg

hist

hist_extent

x

thresh_pts_upper

thresh_pts_lower

fit_weights

Methods

__init__(hist, hist_extent, x, ...[, poly_deg])

thresh_lower(x)

thresh_upper(x)

Inheritance Diagram

Inheritance diagram of kgpy.img.spikes.Stats

thresh_lower(x)
Parameters

x (ndarray) –

thresh_upper(x)
Parameters

x (ndarray) –

fit_weights: numpy.ndarray
hist: numpy.ndarray
hist_extent: numpy.ndarray
poly_deg: int = 1
thresh_pts_lower: numpy.ndarray
thresh_pts_upper: numpy.ndarray
x: numpy.ndarray