Xmipp  v3.23.11-Nereus
Public Member Functions | Public Attributes | Friends | List of all members

#include <pca.h>

Public Member Functions

int PCANo () const
 
const PCAAnalyzeroperator() (int i) const
 

Public Attributes

std::vector< PCAAnalyzerPCA
 

Friends

std::ostream & operator<< (std::ostream &out, const PCA_set &PS)
 
std::istream & operator>> (std::istream &in, PCA_set &PS)
 

Detailed Description

Set of PCA classes

Definition at line 187 of file pca.h.

Member Function Documentation

◆ operator()()

const PCAAnalyzer* PCA_set::operator() ( int  i) const
inline

Returns a pointer to PCA number i

Definition at line 206 of file pca.h.

207  {
208  return &(PCA[i]);
209  }
Definition: pca.h:34
#define i

◆ PCANo()

int PCA_set::PCANo ( ) const
inline

Returns the number of PCA analysis.

Definition at line 200 of file pca.h.

201  {
202  return PCA.size();
203  }
Definition: pca.h:34

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const PCA_set PS 
)
friend

Show all PCA

Definition at line 438 of file pca.cpp.

439 {
440  int imax = PS.PCA.size();
441  out << "Number of PCAs: " << imax << std::endl;
442  for (int i = 0; i < imax; i++)
443  out << PS.PCA[i];
444  return out;
445 }
#define i
std::vector< PCAAnalyzer > PCA
Definition: pca.h:191

◆ operator>>

std::istream& operator>> ( std::istream &  in,
PCA_set PS 
)
friend

Read a set of PCA just as shown

Definition at line 447 of file pca.cpp.

448 {
449  int imax;
450  std::string read_line;
451  getline(in, read_line);
452  sscanf(read_line.c_str(), "Number of PCAs: %d\n", &imax);
453  PS.PCA.resize(imax);
454  for (int i = 0; i < imax; i++)
455  {
456  in >> PS.PCA[i];
457  }
458  return in;
459 }
#define i
int in
std::vector< PCAAnalyzer > PCA
Definition: pca.h:191

Member Data Documentation

◆ PCA

std::vector<PCAAnalyzer> PCA_set::PCA

Set of PCA analysis.

Definition at line 191 of file pca.h.


The documentation for this class was generated from the following file: