Description
Computes the Lp-norm of a field or a field container. When a second entry is provided, the residual (the difference between the first and second entry) is calculated along with the error as the Lp-norm of the difference. When a second input is not provided, the calculation is only completed for the first entry. The type of calculation performed is based on the specifications provided for pin 1, pin 2 defines the type of error norm (L1 vs L2), and pin 3 which entity to use as a referenceInputs
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.field_or_fields_container1 (Pin 0)
- Required: Yes
- Expected type(s):
field,fields_container
normalization_type (Pin 1)
- Required: No
- Expected type(s):
int32
norm_calculation_type (Pin 2)
- Required: No
- Expected type(s):
int32
field_reference (Pin 3)
- Required: No
- Expected type(s):
int32
field_or_fields_container2 (Pin 4)
- Required: No
- Expected type(s):
field,fields_container
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.residuals (Pin 0)
- Expected type(s):
field,fields_container
error (Pin 1)
- Expected type(s):
field,fields_container
residuals_normalization_factor (Pin 2)
- Expected type(s):
field,fields_container
error_normalization_factor (Pin 3)
- Expected type(s):
field,fields_container
Configurations
This operator supports configuration options that modify its behavior.mutex
- Expected type(s):
bool - Default value: false
permissive
- Expected type(s):
bool - Default value: true
Scripting
This operator can be accessed through scripting interfaces using these identifiers. Category: math Plugin: core Scripting name: compute_residual_and_error Full name: math.compute_residual_and_error Internal name: error_norm_calc License: NoneExamples
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.