Skip to main content

compression:quantization (fields container)

Version: 0.0.0

Description

Scales all the fields of a fields container to a given precision threshold, then rounds all the values to the unit.

Inputs

InputNameExpected type(s)Description
Pin 0
Required
input_fcfields_containerFields container to be quantized.
Pin 1
Required
thresholddouble, field, fields_containerPrecision threshold desired.
Case double : the threshold is applied on all the fields of the input fields container.
Case field with one, numComp or input size values : the threshold is used for each field of the input fields container.
Case fields container : the corresponding threshold field is found by matching label.

Outputs

OutputNameExpected type(s)Description
Pin 0output_fcfields_containerQuantized fields container.

Configurations

NameExpected type(s)Default valueDescription
mutexboolfalseIf this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

Scripting

Category: compression

Plugin: N/A

Scripting name: quantization_fc

Full name: compression.quantization_fc

Internal name: quantization_fc

License: any_dpf_supported_increments

Changelog

  • Version 0.0.0: Initial release.