fit_mixture
Fit a Gaussian mixture to one column of values, as Plexora fits it.
from plexora.api import fit_mixturefit_mixture(values, components=3)components Gaussians over values (1-D), seeded, in the values' own
floating type. Within page_fits() on the website the fit may be made by
one of the page's helper Pythons -- the same code and build, so the same
numbers -- and AskAgain is raised while it is being made.
Parameters
valuesnumpy.ndarrayrequiredThe values, 1-D.
componentsintdefault 3How many Gaussians. Defaults to 3.
Returns
numpy.ndarrayThe means, then the variances, then the weights, each of
components, in the order the fit found them.
Mixture fits
Fit a Gaussian mixture as Plexora does, and on the website let a route's fits be made by the page's helper Pythons.
page_fits
A with block in which a route's mixture fits (fit_mixture) are made by the website's helper Pythons, when the page has one and the request can be asked again; anywhere else the block changes nothing.