bnl.ops.CleanByKDE

class bnl.ops.CleanByKDE(bw=1.0)[source]

Bases: CleanStrategy

Clean boundaries by finding peaks in a weighted kernel density estimate.

Public Methods:

Inherited from Strategy

register(name)

A class method to register strategies in a central registry.


Parameters:

bw (float)

__call__(bc)[source]

Cleans boundaries in a BoundaryContour.

Parameters:

bc (BoundaryContour)

Return type:

BoundaryContour