encode_histogram_Histogram
Overview
encode_histogram_Histogram is a class in Aspose.Font FOSS for Python.
This class provides 6 methods for working with encode_histogram_Histogram objects in Python programs.
Available methods include: Add1, Add2, AddHistogram, Clear, Remove, __init__.
All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Properties: bit_cost_, data_, kDataSize, total_count_.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
bit_cost_ | `` | Read | Gets the bit cost . |
total_count_ | `` | Read | Gets the total count . |
kDataSize | `` | Read | Gets the k data size. |
data_ | `` | Read | Gets the data . |
Methods
| Signature | Description |
|---|---|
__init__(kDataSize) | Calls init on this encode_histogram_Histogram instance. |
Clear() | Resets the histogram to an empty state |
Add1(val) | Increments the count for the given value by one |
Remove(val) | Decrements or deletes the entry for the specified value |
Add2(p, p_off, n) | Adds a count n for value p with offset p_off |
AddHistogram(v) | Merges another histogram v into this one |