hyperspy.samfire_utils.segmenters.histogram module

class hyperspy.samfire_utils.segmenters.histogram.HistogramSegmenter(bins='freedman')

Bases: object

Historam Segmenter strategy of the SAMFire. Uses histograms to estimate parameter distribusions, and then passes the most frequent values as the starting parameter estimates.

most_frequent()

Calculates the most frequent values in the currently stored histograms of the database. Does to by looking for local maxima in the frequences.

update(value_dict)

Recalculates the database, given value dictionary (with all values!)

Parameters:value_dict (dict) – dictionary of all already calculated values in the form of {component_name: {parameter_name: values, …}, …}