#include <TecConstraint.h>
◆ ApproximateTECConstraint()
| dp3::ddecal::ApproximateTECConstraint::ApproximateTECConstraint |
( |
Mode |
mode | ) |
|
|
inline |
◆ Apply()
| void dp3::ddecal::ApproximateTECConstraint::Apply |
( |
SolutionSpan & |
solutions, |
|
|
double |
time |
|
) |
| |
|
overridevirtual |
This method applies the constraints to the solutions.
- Parameters
-
| solutions | A 4D array with dimensions n_channel_blocks x n_antennas x n_sub_solutions x n_pol solutions. n_pol is the dimension with the fastest changing index. Using a span instead of a real tensor as argument type avoids the need for copying data in Python bindings. |
| time | Central time of interval. |
Reimplemented from dp3::ddecal::TecConstraint.
◆ GetResult()
| std::vector<ConstraintResult> dp3::ddecal::ApproximateTECConstraint::GetResult |
( |
| ) |
const |
|
inlineoverridevirtual |
Obtain results that are to be written to the solution file, instead of the actual solutions. Not all constraints use these; some constraints modify the solutions and the solutions are the result. Example of constraint the do produce results are the Faraday and TEC constraints.
- Returns
- Optionally, a vector with the last results. The vector is index by value type (e.g. Faraday rotation and scalar).
Reimplemented from dp3::ddecal::TecConstraint.
◆ initializeChild()
| void dp3::ddecal::ApproximateTECConstraint::initializeChild |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ PrepareIteration()
| void dp3::ddecal::ApproximateTECConstraint::PrepareIteration |
( |
bool |
has_reached_precision, |
|
|
size_t |
iteration, |
|
|
bool |
final_iter |
|
) |
| |
|
inlineoverride |
◆ Satisfied()
| bool dp3::ddecal::ApproximateTECConstraint::Satisfied |
( |
| ) |
const |
|
inlineoverridevirtual |
Whether the constraint has been satisfied. The calibration process will continue at least as long as Satisfied()=false, and performs at least one more iteration after Satisfied()=true. Together with SetPrecisionReached(), this can make the algorithm change the constraining method based on amount of convergence.
Reimplemented from dp3::ddecal::Constraint.
◆ SetFittingChunkSize()
| void dp3::ddecal::ApproximateTECConstraint::SetFittingChunkSize |
( |
size_t |
fitting_chunk_size | ) |
|
|
inline |
◆ SetMaxApproximatingIterations()
| void dp3::ddecal::ApproximateTECConstraint::SetMaxApproximatingIterations |
( |
size_t |
max_approx_iters | ) |
|
|
inline |
The documentation for this class was generated from the following file: