|
Programming Reference for VirtualLab Fusion
2022.1
|
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Collection of information for the transmission or signal domain.
More...
Public Member Functions | |
| int | AddConstraint (Constraint constr) |
| Adds a given constraint to the Constraints array and sets its Domain property to this instance. More... | |
| int | AddParameterField (ComplexField field) |
| Adds a given ComplexField to the list of parameter fields More... | |
| int | AddRegionField (IRegion1D2D field) |
| Adds a region to the list of region fields More... | |
| int | AddScaleFactor (ScaleFactor sf) |
| Adds a given scale factor to the ScaleFactors array and sets its Domain property to this instance. More... | |
| void | ApplyAllSequentially (ComplexField field, SamplingParameters samplingParametersOfField) |
| Apply all constraints sequentially. Function includes propagation steps and scale factor calculation. More... | |
| void | ApplyAllSequentially (ComplexField field, SamplingParameters samplingParametersOfField, double projectionStrength) |
| Apply all constraints sequentially. Function includes propagation steps and scale factor calculation. More... | |
| void | ApplyAllSequentially (ComplexField field, SamplingParameters samplingParametersOfField, double projectionStrength, out double ssdeSig, out double deviation) |
| Apply all constraints sequentially. Function includes propagation steps and scale factor calculation. Squared distance errors in signal planes and quadratic deviation between field before and after this operation are calculated. More... | |
| void | ApplyFirstPropagation (ComplexField field) |
| Applies the first propagation. More... | |
| void | ApplySecondPropagation (ComplexField field) |
| Applies the second propagation. More... | |
| void | CalculateScaleFactors (ComplexField field, SamplingParameters samplingParametersOfField) |
| Calculate all scale factors More... | |
| ConstraintDomain () | |
| Standard constructor | |
| double | GetDeviation (ComplexField field, SamplingParameters samplingParametersOfField) |
| Calculate quadratic deviation between original field and projected field for projection strength 1 More... | |
| Complex | GetParameterFieldValue (int parameterFieldIndex, int x, int y) |
| Get value of a specific point in a specific parameter field. More... | |
| Complex | GetScaleFactorValue (int scaleFactorIndex) |
| Get value of a specific scale factor. More... | |
| bool | IsPointInRegion (int regionFieldIndex, int coord) |
| Determines whether the given position belongs to the given region. More... | |
| bool | IsPointInRegion (int regionFieldIndex, int x, int y) |
| Determines whether the given position lies within the given region. More... | |
Public Attributes | |
| Constraint[] | Constraints |
| Constraints in that domain. | |
| bool | EnableFirstPropagation |
| Whether to apply first propagation | |
| bool | EnableSecondPropagation |
| Whether to apply second propagation | |
| bool | ForceLinearProjectionStrengthApplication |
If false, in the ApplyAllSequentially functions with projectionStrength parameter, the projection strength is invoked by the constraints. Otherwise, a linear projection strength is invoked for all constraint simultaneously. The latter case is important in case of multiple constraints with non-disjoint region fields. The first case, which is default for backward compatibility, is necessary e.g. for soft quantization, where the projection strength is invoked non-linearly. | |
| ComplexField[] | ParameterFields |
| Array of parameter fields. When indexing to this array, index -1 should correspond to the field constant 1. | |
| PropagationOperator | PropagationOperator |
| Propagation operator to be used for the ConstraintDomain (optional) | |
| IRegion1D2D[] | RegionFields |
| Array of region fields. When indexing to this array, index -1 should correspond to the full region. | |
| ScaleFactor[] | ScaleFactors |
| Scale factors. When indexing to this array, index -1 should correspond to scale factor value 1. | |
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Collection of information for the transmission or signal domain.
| int AddConstraint | ( | Constraint | constr | ) |
Adds a given constraint to the Constraints array and sets its Domain property to this instance.
| constr | The constraint to add. |
| int AddParameterField | ( | ComplexField | field | ) |
Adds a given ComplexField to the list of parameter fields
| field | Field to be added |
| int AddRegionField | ( | IRegion1D2D | field | ) |
Adds a region to the list of region fields
| field | Field to be added |
| int AddScaleFactor | ( | ScaleFactor | sf | ) |
Adds a given scale factor to the ScaleFactors array and sets its Domain property to this instance.
| sf | Scale factor to be added. |
| void ApplyAllSequentially | ( | ComplexField | field, |
| SamplingParameters | samplingParametersOfField | ||
| ) |
Apply all constraints sequentially. Function includes propagation steps and scale factor calculation.
| field | Field where constraints are to be applied to |
| samplingParametersOfField | The sampling parameters of the field. |
| void ApplyAllSequentially | ( | ComplexField | field, |
| SamplingParameters | samplingParametersOfField, | ||
| double | projectionStrength | ||
| ) |
Apply all constraints sequentially. Function includes propagation steps and scale factor calculation.
| field | Field where constraints are to be applied to |
| samplingParametersOfField | The sampling parameters of the field. |
| projectionStrength | The projection strength. |
| void ApplyAllSequentially | ( | ComplexField | field, |
| SamplingParameters | samplingParametersOfField, | ||
| double | projectionStrength, | ||
| out double | ssdeSig, | ||
| out double | deviation | ||
| ) |
Apply all constraints sequentially. Function includes propagation steps and scale factor calculation. Squared distance errors in signal planes and quadratic deviation between field before and after this operation are calculated.
| field | Field where constraints are to be applied to |
| samplingParametersOfField | The sampling parameters of the field. |
| projectionStrength | Projection strength |
| ssdeSig | Returns the summed squared distance errors in signal planes |
| deviation | Returns the quadratic deviation between original field and field after applying projections for the selected projection strength |
| void ApplyFirstPropagation | ( | ComplexField | field | ) |
Applies the first propagation.
| field | The field to propagate. |
| void ApplySecondPropagation | ( | ComplexField | field | ) |
Applies the second propagation.
| field | The field to propagate. |
| void CalculateScaleFactors | ( | ComplexField | field, |
| SamplingParameters | samplingParametersOfField | ||
| ) |
Calculate all scale factors
| field | Field obtained by DoForwardPropagation |
| samplingParametersOfField | The sampling parameters of the field. |
| double GetDeviation | ( | ComplexField | field, |
| SamplingParameters | samplingParametersOfField | ||
| ) |
Calculate quadratic deviation between original field and projected field for projection strength 1
| field | Original field. Remains unmodified during this operation. |
| samplingParametersOfField | The sampling parameters of the field. |
| Complex GetParameterFieldValue | ( | int | parameterFieldIndex, |
| int | x, | ||
| int | y | ||
| ) |
Get value of a specific point in a specific parameter field.
| parameterFieldIndex | The index of the parameter field. |
| x | The x-position in the parameter field. |
| y | The x-position in the parameter field. |
| Complex GetScaleFactorValue | ( | int | scaleFactorIndex | ) |
Get value of a specific scale factor.
| scaleFactorIndex | The index of the scale factor. |
| bool IsPointInRegion | ( | int | regionFieldIndex, |
| int | coord | ||
| ) |
Determines whether the given position belongs to the given region.
| regionFieldIndex | The index of the region. |
| coord | The position. |
True if the region field index is -1. | Exception | Method can be used for 1D regions only. |
| bool IsPointInRegion | ( | int | regionFieldIndex, |
| int | x, | ||
| int | y | ||
| ) |
Determines whether the given position lies within the given region.
| regionFieldIndex | The index of the region. |
| x | The x-position. |
| y | The y-position. |
True if the region field index is -1. | Exception | Method can be used for 2D regions only. |