Skip to content

definition of coverage, always zero ? #25

@pas-calc

Description

@pas-calc

self._coverage = np.max(np.min(self._dist_land_data, 1))

In
self._coverage = np.max(np.min(self._dist_land_data, 1))
this value is always 0 for a proper distance matrix (dist_land_data is a subset of the full distance matrix, but for each landmark there is one data point (namely itself), to which it has distance 0.

Or do we rather mean np.min(self._dist_land_data, 0) which is the distance of each data point to the closest landmark (which will evaluate 0 for the data points which are also chosen as landmarks) but otherwise a non-negative value.

np.max(np.min(self._dist_land_data, 0)) is then the largest distance of a datapoint-landmark pair.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions