dpsdcomputer_cross_psd.cc 1.65 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*! \file dpsdcomputer_cross_psd.cc
 * \brief compute cross power spectral density (implementation)
 * 
 * ----------------------------------------------------------------------------
 * 
 * \author Thomas Forbriger
 * \date 03/01/2019
 * 
 * compute cross power spectral density (implementation)
 * 
 * Copyright (c) 2019 by Thomas Forbriger (BFO Schiltach) 
 * 
 * ----
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version. 
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 * ----
 *
 * REVISIONS and CHANGES 
 *  - 03/01/2019   V1.0   Thomas Forbriger
 * 
 * ============================================================================
 */
33
34
#define PSDXX_DPSDCOMPUTER_CROSS_PSD_CC_VERSION \
  "PSDXX_DPSDCOMPUTER_CROSS_PSD_CC   V1.0"
35

36
#include <psdxx/psd.h>
37

38
namespace psd {
39

40
41
42
  TDCISeries 
    DPSDComputer::cross_psd(const TDISeries::Tcoc& s1,
                            const TDISeries::Tcoc& s2) const
43
  {
44
45
    SpectralValues sv=this->processor(s1, s2, true, false);
    TDCISeries retval(sv.cpsd);
46
    return(retval);
47
  } // TDCISeries DPSDComputer::cross_psd(...) const
48
49

} // namespace psd
50
51

/* ----- END OF dpsdcomputer_cross_psd.cc ----- */