DP3
SubtractMixed.h
Go to the documentation of this file.
1 // SubtractMixed.h: Subtract visibilities from buffer after weighting by mixing
2 // coefficients.
3 //
4 // Copyright (C) 2020 ASTRON (Netherlands Institute for Radio Astronomy)
5 // SPDX-License-Identifier: GPL-3.0-or-later
6 
9 
10 #ifndef DPPP_SUBTRACTMIXED_H
11 #define DPPP_SUBTRACTMIXED_H
12 
13 #include "Baseline.h"
14 #include "Cursor.h"
15 
16 namespace dp3 {
17 namespace base {
18 
38 void subtract(size_t nBaseline, size_t nChannel,
39  const_cursor<Baseline> baselines,
40  cursor<std::complex<float>> data,
41  const_cursor<std::complex<double>> model,
42  const_cursor<std::complex<double>> weight, float &var_before,
43  float &var_after);
44 
45 } // namespace base
46 } // namespace dp3
47 
48 #endif
Pair of stations that together form a baseline (interferometer).
Definition: Cursor.h:97
Multi-dimensional iterators.
Definition: Cursor.h:20
void subtract(size_t nBaseline, size_t nChannel, const_cursor< Baseline > baselines, cursor< std::complex< float >> data, const_cursor< std::complex< double >> model, const_cursor< std::complex< double >> weight, float &var_before, float &var_after)
This file has generic helper routines for testing steps.
Definition: AntennaConfig.h:53