PLS Class Reference
Two Block Partial Least Squares.
More...
#include <pls.h>
List of all members.
|
Public Member Functions |
| PLS () |
| Constructor.
|
virtual | ~PLS () |
| Destructor.
|
void | LoadData (double **data, int landmarks, int dimensions, int individuals, vector< int > leftBlock, vector< int > rightBlock) |
void | LoadData (double **left, double **right, int lcols, int rcols, int rows) |
void | LoadData (double **data, double **variables, int numvar, int landmarks, int dimensions, int individuals) |
void | PerformPLS () |
| Perform Partial Least Squares.
|
void | PrintResults () |
| Print results to stream.
|
bool | IsCalculated () |
Static Public Attributes |
static const double | EPSILON = 1e-12 |
| A Small floating point number.
|
Detailed Description
Two Block Partial Least Squares.
Member Function Documentation
bool PLS::IsCalculated |
( |
|
) |
|
Has PLS been performed
- Returns:
- true if PLS calculations have been performed on our data
void PLS::LoadData |
( |
double ** |
data, |
|
|
double ** |
variables, |
|
|
int |
numvar, |
|
|
int |
landmarks, |
|
|
int |
dimensions, |
|
|
int |
individuals | |
|
) |
| | |
Load shape and variables The data matrix contains shape variables for each specimen as row vectors (1st specimen): x1 y1 z1 x2 y2 z2 ... xn yn zn (2nd specimen): x1 y1 z1 x2 y2 z2 ... xn yn zn etc. Variable matrix contains variables as columns
- Parameters:
-
| data | the data matrix |
| landmarks | number of landmarks |
| dimensions | number of dimensions |
| individuals | number of individuals |
| leftBlock | the landmarks in the left block |
| rightBlock | the landmarks in the right block |
void PLS::LoadData |
( |
double ** |
left, |
|
|
double ** |
right, |
|
|
int |
lcols, |
|
|
int |
rcols, |
|
|
int |
rows | |
|
) |
| | |
Load left and right data blocks The left and right blocks contain shape variables for each specimen as row vectors (1st specimen): x1 y1 z1 x2 y2 z2 ... xn yn zn (2nd specimen): x1 y1 z1 x2 y2 z2 ... xn yn zn etc.
- Parameters:
-
| left | the left block |
| right | the right block |
| lcols | number of columns in left block |
| rcols | number of columns in right block |
| rows | number of rows |
void PLS::LoadData |
( |
double ** |
data, |
|
|
int |
landmarks, |
|
|
int |
dimensions, |
|
|
int |
individuals, |
|
|
vector< int > |
leftBlock, |
|
|
vector< int > |
rightBlock | |
|
) |
| | |
Load shape with selected landmarks for block 1 and block 2 The data matrix contains shape variables for each specimen as row vectors (1st specimen): x1 y1 z1 x2 y2 z2 ... xn yn zn (2nd specimen): x1 y1 z1 x2 y2 z2 ... xn yn zn etc.
- Parameters:
-
| data | the data matrix |
| landmarks | number of landmarks |
| dimensions | number of dimensions |
| individuals | number of individuals |
| leftBlock | the landmarks in the left block |
| rightBlock | the landmarks in the right block |
The documentation for this class was generated from the following files:
- M:/evan/GMMlib/inc/pls.h
- M:/evan/GMMlib/src/pls.cpp