Summary
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 reference available inputs:field_or_fields_container1 (Field, FieldsContainer), normalization_type (Int32) (optional), norm_calculation_type (Int32) (optional), field_reference (Int32) (optional), field_or_fields_container2 (Field, FieldsContainer) (optional)
available outputs: residuals (Field ,FieldsContainer), error (Field ,FieldsContainer), residuals_normalization_factor (Field ,FieldsContainer), error_normalization_factor (Field ,FieldsContainer)
Example
Class Information
Inputs
field_or_fields_container1
field or fields container - compulsory Type: LinkableInputnormalization_type
Type: LinkableInputnorm_calculation_type
Type: LinkableInputfield_reference
Field reference for the normalization step, default: 0 for entry 1, 1 for residuals - optional Type: LinkableInputfield_or_fields_container2
field or fields container of same dimensionality as entry 1 - optional Type: LinkableInputOutputs
residuals
0: normalized residuals (aka field 1 - field 2) as a field or field container, normalized depending on the normalization type Type: LinkableOutputerror
1: error as a field or a field container depending on the entry’s type. Type: LinkableOutputresiduals_normalization_factor
2: factor used for residual normalization Type: LinkableOutputerror_normalization_factor
3: factor used for error norm normalization Type: LinkableOutputConstructors
Constructor
Constructor
field_or_fields_container1(object)normalization_type(object)norm_calculation_type(object)field_reference(object)field_or_fields_container2(object)config(OperatorConfig)
Constructor
config(OperatorConfig)