Xmipp  v3.23.11-Nereus
ctf_estimate_psd_with_arma.h
Go to the documentation of this file.
1 /***************************************************************************
2  *
3  * Authors: Carlos Oscar S. Sorzano (coss@cnb.csic.es)
4  * Javier �ngel Vel�zquez Muriel (javi@cnb.csic.es)
5  *
6  * Unidad de Bioinformatica of Centro Nacional de Biotecnologia , CSIC
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21  * 02111-1307 USA
22  *
23  * All comments concerning this program package may be sent to the
24  * e-mail address 'xmipp@cnb.csic.es'
25  ***************************************************************************/
26 #pragma once
27 
28 #include <core/multidim_array.h>
29 #include <core/xmipp_program.h>
30 
31 constexpr int AR =0; // To distinguish between an AR parameter or a MA
32 constexpr int MA =1; // parameter, or sigma in the output ARMAParameters matrix
33 constexpr int SIGMA =2; // returned by functions.
34 
40 {
41 public:
42  int N_AR; // order in the Rows direction of the AR part of the model
43  int M_AR; // order in the Cols direction of the AR part of the model
44  int N_MA; // order in the Rows direction of the MA part of the model
45  int M_MA; // order in the Cols direction of the MA part of the model
46 public:
47  MultidimArray<double> ARParameters; // Output parameters
48  MultidimArray<double> MAParameters; // Output parameters
49  double dSigma; // Noise variance
50 public:
52  void readParams(XmippProgram *program);
54  static void defineParams(XmippProgram *program);
55 };
56 
109 
110 
132 
MultidimArray< double > MAParameters
constexpr int AR
MultidimArray< double > ARParameters
void CausalARMA(MultidimArray< double > &Img, ARMA_parameters &prm)
constexpr int SIGMA
void ARMAFilter(MultidimArray< double > &Img, MultidimArray< double > &Filter, ARMA_parameters &prm)
void readParams(XmippProgram *program)
Read parameters from command line.
static void defineParams(XmippProgram *program)
Define parameters.
ProgClassifyCL2D * prm
constexpr int MA