DataPoint

Overview

DataPoint is a class in Aspose.PDF FOSS for Python.

Represents a data point in clustering operations.

This class provides 2 methods for working with DataPoint objects in Python programs. Available methods include: __init__, get_centroid. All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package. Properties: name, value.

Properties

NameTypeAccessDescription
name``ReadGets the name.
value``ReadGets the value.

Methods

SignatureDescription
__init__(name: str, value: list[float])Initialize a data point.
get_centroid(cluster: Cluster)DataPointCalculate the centroid of a cluster.

See Also