ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
Loading...
Searching...
No Matches
Analysis.StatsBuffer.Metrics Class Reference

Public Member Functions

 __init__ (self, spectrum, history)
 
 compute (self)
 
 height (self)
 
 reset (self)
 
 resize (self)
 Pops oldest row if we're full, or truncates more if history was reduced, but in either case leaves us with at least one slot to append the latest spectrum.
 
 update (self, spectrum, history)
 
 width (self)
 

Public Attributes

 data = None
 
 history = history
 
 max = None
 
 mean = None
 
 median = None
 
 min = None
 
 mode = None
 
 sigma_hi = None
 
 sigma_lo = None
 
 stdev = np.std (self.data, axis=0)
 

Constructor & Destructor Documentation

◆ __init__()

Analysis.StatsBuffer.Metrics.__init__ ( self,
spectrum,
history )

Member Function Documentation

◆ compute()

Analysis.StatsBuffer.Metrics.compute ( self)

◆ height()

Analysis.StatsBuffer.Metrics.height ( self)

◆ reset()

Analysis.StatsBuffer.Metrics.reset ( self)

◆ resize()

Analysis.StatsBuffer.Metrics.resize ( self)

Pops oldest row if we're full, or truncates more if history was reduced, but in either case leaves us with at least one slot to append the latest spectrum.

◆ update()

Analysis.StatsBuffer.Metrics.update ( self,
spectrum,
history )

◆ width()

Analysis.StatsBuffer.Metrics.width ( self)

Member Data Documentation

◆ data

Analysis.StatsBuffer.Metrics.data = None

◆ history

Analysis.StatsBuffer.Metrics.history = history

◆ max

Analysis.StatsBuffer.Metrics.max = None

◆ mean

Analysis.StatsBuffer.Metrics.mean = None

◆ median

Analysis.StatsBuffer.Metrics.median = None

◆ min

Analysis.StatsBuffer.Metrics.min = None

◆ mode

Analysis.StatsBuffer.Metrics.mode = None

◆ sigma_hi

Analysis.StatsBuffer.Metrics.sigma_hi = None

◆ sigma_lo

Analysis.StatsBuffer.Metrics.sigma_lo = None

◆ stdev

Analysis.StatsBuffer.Metrics.stdev = np.std (self.data, axis=0)

The documentation for this class was generated from the following file: