|
lsst.meas.algorithms g8e3bb8577d+ea375a93e1
|
Classes | |
| class | EventHandler |
| class | ObjectSizeNoGoodSourcesError |
| class | ObjectSizeNoSourcesError |
| class | ObjectSizeStarSelectorConfig |
| class | ObjectSizeStarSelectorTask |
Functions | |
| _assignClusters (yvec, centers) | |
| _kcenters (yvec, nCluster, useMedian=False, widthStdAllowed=0.15) | |
| _improveCluster (yvec, centers, clusterId, nsigma=2.0, nIteration=10, clusterNum=0, widthStdAllowed=0.15) | |
| plot (mag, width, centers, clusterId, marker="o", markersize=2, markeredgewidth=0, ltype='-', magType="model", clear=True) | |
Variables | |
| _LOG = getLogger(__name__) | |
|
protected |
Return a vector of centerIds based on their distance to the centers.
Definition at line 192 of file objectSizeStarSelector.py.
|
protected |
Improve our estimate of one of the clusters (clusterNum) by sigma-clipping around its median.
Definition at line 265 of file objectSizeStarSelector.py.
|
protected |
A classic k-means algorithm, clustering yvec into nCluster clusters Return the set of centres, and the cluster ID for each of the points If useMedian is true, use the median of the cluster as its centre, rather than the traditional mean Serge Monkewitz points out that there other (maybe smarter) ways of seeding the means: "e.g. why not use the Forgy or random partition initialization methods" however, the approach adopted here seems to work well for the particular sorts of things we're clustering in this application
Definition at line 223 of file objectSizeStarSelector.py.
| lsst.meas.algorithms.objectSizeStarSelector.plot | ( | mag, | |
| width, | |||
| centers, | |||
| clusterId, | |||
| marker = "o", | |||
| markersize = 2, | |||
| markeredgewidth = 0, | |||
| ltype = '-', | |||
| magType = "model", | |||
| clear = True ) |
Definition at line 301 of file objectSizeStarSelector.py.
|
protected |
Definition at line 42 of file objectSizeStarSelector.py.