File: PCAproj.h

package info (click to toggle)
r-cran-pcapp 1.9-73-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 800 kB
  • sloc: cpp: 5,961; ansic: 917; sh: 13; makefile: 2
file content (42 lines) | stat: -rw-r--r-- 772 bytes parent folder | download
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
33
34
35
36
37
38
39
40
41
42
#include "pcaPP.h"


	class CPCAproj
	{
	public:
		CPCAproj (int *pnParIn, double *pdParIn, double *pdX, double *pdZ, double *pdL, double *pdSDev) ;

		void Calc () ;


	protected:
		void SetSingular (t_size dwK) ;

		virtual void Update (const SVecD &vCurEVec) {}

		const t_size m_dwN, m_dwP, m_dwRealN, m_dwK ;
		t_size m_dwShortN ;
		const int m_nScal, m_nScores ;

		const double m_dZeroTol ;
		double m_dCurLambda ;

		SMatD m_mX, m_mL, m_mZ, m_mA ;
		SVecD m_vSDev, m_vCurScore ;
		SVecN m_vHelpTF ;

	} ;

	class CPCAprojU : public CPCAproj
	{
	public:
		CPCAprojU (int *pnParIn, double *pdParIn, double *pdX, double *pdZ, double *pdL, double *pdSDev) ;

	protected:

		const t_size m_dwMaxIt, m_dwMaxHalf ;

		virtual void Update (const SVecD &vCurEVec) ;

	} ;