encode_histogram_Histogram

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

NameTypeAccessDescription
bit_cost_``ReadGets the bit cost .
total_count_``ReadGets the total count .
kDataSize``ReadGets the k data size.
data_``ReadGets the data .

Methods

SignatureDescription
__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

See Also