Skip to main content
Version: 0.0.0

Description

Check if two fields are identical according to the following behavior:
  • double_value (input pin 2) parameter is a significance threshold, not an absolute tolerance
  • Values below double_value are considereded ‘negligible’, values above are considered ‘significant’
  • Both fields are considered different if the data for at least one entity in one field is negligible and the data for the same entity in the other is significant
  • When the data for the same entity in both fields is significant, they are compared based on double_tolerance (input pin 3) with the expression given in the pin documentation.

Inputs

This table lists the input pins for this operator. Input pins define the data that the operator requires to perform its operation. Some inputs are required, while others are optional and provide additional configuration. Each parameter is detailed in the sections that follow the table.

fieldA (Pin 0)

  • Required: Yes
  • Expected type(s): field

fieldB (Pin 1)

  • Required: Yes
  • Expected type(s): field

double_value (Pin 2)

  • Required: No
  • Expected type(s): double
Double positive small value. Smallest value considered during the comparison step. All the absolute values in the field less than this value are considered null, (default value: 1.0e-14).

double_tolerance (Pin 3)

  • Required: No
  • Expected type(s): double
Double relative tolerance. Maximum tolerance gap between two compared values. Values within relative tolerance are considered identical. Formula is (v1 - v2) / v2 < double_tolerance. Default is 0.001.

Outputs

This table lists the output pins for this operator. Output pins provide the results of the operator’s computation and can be connected to inputs of other operators or retrieved for further processing. Each output is detailed in the sections that follow the table.

boolean (Pin 0)

  • Expected type(s): bool
bool (true if identical…)

message (Pin 1)

Configurations

This operator supports configuration options that modify its behavior.

mutex

  • Expected type(s): bool
  • Default value: false
If this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

Scripting

This operator can be accessed through scripting interfaces using these identifiers. Category: logic Plugin: core Scripting name: identical_fields Full name: logic.identical_fields Internal name: AreFieldsIdentical License: None

Examples

These examples demonstrate how to use this operator in different programming environments. Each example shows how to instantiate the operator, connect the required inputs, and retrieve the output.

Changelog

  • Version 0.0.0: Initial release.