Écode - Cluster
Vue de l’ensemble
’encode_Cluster’ est une classe dans Aspose.Font FOSS pour Python.
Cette classe fournit 9 méthodes pour travailler avec des objets encode_Cluster dans les programmes Python. Les méthodologies disponibles comprennent: CluzCostDiff, Histograms Cluster', CompareAndPushToHeap, HistogramBitCustDistance 'HisogramCombine , 'SignaturePar Comparateur HisogramaReindexetRemap Histogram__init__. Tous les membres publics sont accessibles à toute application Pythone après l’installation de l’Aspouse.Font FOSS pour le package PyThone.
méthodes
| Signature | Description |
|---|---|
__init__() | Calls init on this encode_Cluster instance. |
HistogramPairComparator(p1, p2) | Compares two histogram entries p1 and p2 and returns ordering |
ClusterCostDiff(size_a, size_b) | Computes the cost difference between clusters of sizes size_a and size_b |
CompareAndPushToHeap(out, cluster_size, idx1, idx2, pairs) | Compares two clusters and pushes the result onto a heap |
HistogramCombine(out, cluster_size, symbols, symbols_off, symbols_size, max_clusters) | Merges histograms into combined clusters respecting max_clusters |
HistogramBitCostDistance(histogram, candidate) | Calculates the bit‑cost distance between a histogram and a candidate |
HistogramRemap(input, in_size, output, symbols) | Remaps input histogram data to output using a symbol mapping |
HistogramReindex(out, symbols) | Reindexes histogram entries according to the provided symbols |
ClusterHistograms(input, num_contexts, num_blocks, max_histograms, output, outputInt, histogram_symbols) | Groups input histograms into clusters based on contexts and limits |
Voir aussi
- Aspose.Font — référence API d’entreprise