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...
|
| int | AddConstraint (Constraint constr) |
| | Adds a given constraint to the Constraints array and sets its Domain property to this instance.
|
| |
| int | AddParameterField (ComplexField field) |
| | Adds a given ComplexField to the list of parameter fields.
|
| |
| int | AddRegionField (IRegion1D2D field) |
| | Adds a region to the list of region fields.
|
| |
| int | AddScaleFactor (ScaleFactor sf) |
| | Adds a given scale factor to the ScaleFactors array and sets its Domain property to this instance.
|
| |
| void | ApplyAllSequentially (ComplexField field, SamplingParameters samplingParametersOfField) |
| | Apply all constraints sequentially. Function includes propagation steps and scale factor calculation.
|
| |
| void | ApplyAllSequentially (ComplexField field, SamplingParameters samplingParametersOfField, double projectionStrength) |
| | Apply all constraints sequentially. Function includes propagation steps and scale factor calculation.
|
| |
| void | ApplyFirstPropagation (ComplexField field) |
| | Applies the first propagation.
|
| |
| void | ApplySecondPropagation (ComplexField field) |
| | Applies the second propagation.
|
| |
| void | CalculateScaleFactors (ComplexField field, SamplingParameters samplingParametersOfField) |
| | Calculate all scale factors.
|
| |
|
| ConstraintDomain () |
| | Standard constructor.
|
| |
| double | GetDeviation (ComplexField field, SamplingParameters samplingParametersOfField) |
| | Calculate quadratic deviation between original field and projected field for projection strength 1.
|
| |
| Complex | GetParameterFieldValue (int parameterFieldIndex, int x, int y) |
| | Get value of a specific point in a specific parameter field.
|
| |
| Complex | GetScaleFactorValue (int scaleFactorIndex) |
| | Get value of a specific scale factor.
|
| |
| bool | IsPointInRegion (int regionFieldIndex, int coord) |
| | Determines whether the given position belongs to the given region.
|
| |
| bool | IsPointInRegion (int regionFieldIndex, int x, int y) |
| | Determines whether the given position lies within the given region.
|
| |
|
|
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.
|
| |
|
|
bool | IsElementConstraint [get, set] |
| | Gets and sets whether the constraint is in transmission domain.
|
| |
|
bool | IsSignalConstraint [get, set] |
| | Gets and sets whether the constraint is in signal domain.
|
| |
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.
◆ AddConstraint()
Adds a given constraint to the Constraints array and sets its Domain property to this instance.
- Parameters
-
| constr | The constraint to add. |
- Returns
- Index of added constraint.
◆ AddParameterField()
Adds a given ComplexField to the list of parameter fields.
- Parameters
-
- Returns
- Index of added parameter field
◆ AddRegionField()
Adds a region to the list of region fields.
- Parameters
-
- Returns
- Index of added region field
◆ AddScaleFactor()
| int AddScaleFactor |
( |
ScaleFactor | sf | ) |
|
Adds a given scale factor to the ScaleFactors array and sets its Domain property to this instance.
- Parameters
-
| sf | Scale factor to be added. |
- Returns
- Index of added scale factor
◆ ApplyAllSequentially() [1/2]
Apply all constraints sequentially. Function includes propagation steps and scale factor calculation.
- Parameters
-
| field | Field where constraints are to be applied to |
| samplingParametersOfField | The sampling parameters of the field. |
◆ ApplyAllSequentially() [2/2]
Apply all constraints sequentially. Function includes propagation steps and scale factor calculation.
- Parameters
-
| field | Field where constraints are to be applied to |
| samplingParametersOfField | The sampling parameters of the field. |
| projectionStrength | The projection strength. |
◆ ApplyFirstPropagation()
Applies the first propagation.
- Parameters
-
| field | The field to propagate. |
◆ ApplySecondPropagation()
Applies the second propagation.
- Parameters
-
| field | The field to propagate. |
◆ CalculateScaleFactors()
Calculate all scale factors.
- Parameters
-
| field | Field obtained by DoForwardPropagation |
| samplingParametersOfField | The sampling parameters of the field. |
◆ GetDeviation()
Calculate quadratic deviation between original field and projected field for projection strength 1.
- Parameters
-
| field | Original field. Remains unmodified during this operation. |
| samplingParametersOfField | The sampling parameters of the field. |
- Returns
- Quadratic deviation between original field and projected field for projection strength 1
◆ GetParameterFieldValue()
| Complex GetParameterFieldValue |
( |
int | parameterFieldIndex, |
|
|
int | x, |
|
|
int | y ) |
Get value of a specific point in a specific parameter field.
- Parameters
-
| parameterFieldIndex | The index of the parameter field. |
| x | The x-position in the parameter field. |
| y | The x-position in the parameter field. |
- Returns
- The desired value. 1 if the parameterFieldIndex is -1.
◆ GetScaleFactorValue()
| Complex GetScaleFactorValue |
( |
int | scaleFactorIndex | ) |
|
Get value of a specific scale factor.
- Parameters
-
| scaleFactorIndex | The index of the scale factor. |
- Returns
- The value of the scale factor. 1 if the scaleFactorIndex is -1.
◆ IsPointInRegion() [1/2]
| bool IsPointInRegion |
( |
int | regionFieldIndex, |
|
|
int | coord ) |
Determines whether the given position belongs to the given region.
- Parameters
-
| regionFieldIndex | The index of the region. |
| coord | The position. |
- Returns
- Whether the given position lies within the given region.
True if the region field index is -1.
- Exceptions
-
| Exception | Method can be used for 1D regions only. |
◆ IsPointInRegion() [2/2]
| bool IsPointInRegion |
( |
int | regionFieldIndex, |
|
|
int | x, |
|
|
int | y ) |
Determines whether the given position lies within the given region.
- Parameters
-
| regionFieldIndex | The index of the region. |
| x | The x-position. |
| y | The y-position. |
- Returns
- Whether the given position lies within the given region.
True if the region field index is -1.
- Exceptions
-
| Exception | Method can be used for 2D regions only. |