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
| Name | Type | Access | Description |
|---|---|---|---|
name | `` | Read | Gets the name. |
value | `` | Read | Gets the value. |
Methods
| Signature | Description |
|---|---|
__init__(name: str, value: list[float]) | Initialize a data point. |
get_centroid(cluster: Cluster) → DataPoint | Calculate the centroid of a cluster. |