bpp-core3  3.0.0
CorrespondenceAnalysis.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
5 #ifndef BPP_NUMERIC_STAT_MVA_CORRESPONDENCEANALYSIS_H
6 #define BPP_NUMERIC_STAT_MVA_CORRESPONDENCEANALYSIS_H
7 
8 
9 #include "../../Matrix/Matrix.h"
10 #include "DualityDiagram.h"
11 
12 namespace bpp
13 {
24  public DualityDiagram
25 {
26 private:
27  double n_;
28 
29 public:
40  const Matrix<double>& data,
41  unsigned int nbAxes,
42  double tol = 0.0000001,
43  bool verbose = true);
44 
46 
47  CorrespondenceAnalysis* clone() const { return new CorrespondenceAnalysis(*this); }
48 
49 public:
50  double getSumOfAllValues() const { return n_; }
51 };
52 } // end of namespace bpp.
53 #endif // BPP_NUMERIC_STAT_MVA_CORRESPONDENCEANALYSIS_H
The matrix template interface.
Definition: Matrix.h:22
CorrespondenceAnalysis * clone() const
Create a copy of this object and send a pointer to it.
This class allows to perform a correspondence analysis.
CorrespondenceAnalysis(const Matrix< double > &data, unsigned int nbAxes, double tol=0.0000001, bool verbose=true)
Build a new CorrespondenceAnalysis object.
The core class of a multivariate analysis.