encode_Cluster
ภาพรวม
encode_Cluster เป็นคลาสใน Aspose.Font FOSS สําหรับ Python.
หมวดนี้ให้ 9 วิธีในการทํางานกับวัตถุ encode_Cluster ในโปรแกรม Python. วิธีการที่ใช้ได้แก่: ClusterCostDiff, ClusterHistograms, CompareAndPushToHeap, HistogramBitCostDistance, HistogramCombine, HistogramPairComparator, HistogramReindex, HistogramRemap, __init__. สมาชิกสาธารณะทุกคนสามารถเข้าถึงการใช้งาน Python ใดก็ได้หลังจากติดตั้งแพ็คเกจ FOSS for Python.
วิธีการ
| Signature | คําอธิบาย |
|---|---|
__init__() | Calls init การประกอบการ ในตัวอย่าง encode_Cluster นี้. |
HistogramPairComparator(p1, p2) | เปรียบเทียบสองรายการ histogram p1 และ p2 แล้วส่งกลับ ordering |
ClusterCostDiff(size_a, size_b) | คํานวณความแตกต่างของค่าใช้จ่ายระหว่างคลาสเตอร์ขนาด size_a และ size _b |
CompareAndPushToHeap(out, cluster_size, idx1, idx2, pairs) | เปรียบเทียบสองคลาสเตอร์ และผลงานไปใน heap |
HistogramCombine(out, cluster_size, symbols, symbols_off, symbols_size, max_clusters) | รวม histograms เป็นคลาสเตอร์รวม โดยถือว่า max_clusters |
HistogramBitCostDistance(histogram, candidate) | คํานวณระยะทาง bit-cost ระหว่าง histogram และตัวสมัคร |
HistogramRemap(input, in_size, output, symbols) | การทําแผนที่ข้อมูล histogram ทางเข้าสู่ทางออก โดยใช้การสร้างแผนภาพสัญลักษณ์ |
HistogramReindex(out, symbols) | การอัดสัญลักษณ์รายการ histogram ตามเครื่องหมายที่ให้บริการ |
ClusterHistograms(input, num_contexts, num_blocks, max_histograms, output, outputInt, histogram_symbols) | กลุ่มเข้าฮิสโตแกรมเป็นคลาสเตอร์ตามสถานะและขอบเขต |