|
lsst.meas.algorithms gb90eeb9370+96e16df0df
|
Classes | |
| class | EventHandler |
| 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 168 of file objectSizeStarSelector.py.
|
protected |
Improve our estimate of one of the clusters (clusterNum) by sigma-clipping around its median.
Definition at line 241 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 199 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 277 of file objectSizeStarSelector.py.
|
protected |
Definition at line 41 of file objectSizeStarSelector.py.