Statistics kernels.
More...
|
template<typename REAL > |
void | pca (const bool rm_mean, const bool rm_sd, cpumat< REAL > &x, cpuvec< REAL > &sdev, cpumat< REAL > &rot) |
| Principal components analysis. More...
|
|
template<typename REAL > |
void | pca (const bool rm_mean, const bool rm_sd, cpumat< REAL > &x, cpuvec< REAL > &sdev) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
template<typename REAL > |
void | pca (const bool rm_mean, const bool rm_sd, gpumat< REAL > &x, gpuvec< REAL > &sdev, gpumat< REAL > &rot) |
| Principal components analysis. More...
|
|
template<typename REAL > |
void | pca (const bool rm_mean, const bool rm_sd, gpumat< REAL > &x, gpuvec< REAL > &sdev) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
template<typename REAL > |
void | pca (const bool rm_mean, const bool rm_sd, mpimat< REAL > &x, cpuvec< REAL > &sdev, mpimat< REAL > &rot) |
| Principal components analysis. More...
|
|
template<typename REAL > |
void | pca (const bool rm_mean, const bool rm_sd, mpimat< REAL > &x, cpuvec< REAL > &sdev) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
◆ pca() [1/3]
template<typename REAL >
void stats::pca |
( |
const bool |
rm_mean, |
|
|
const bool |
rm_sd, |
|
|
cpumat< REAL > & |
x, |
|
|
cpuvec< REAL > & |
sdev, |
|
|
cpumat< REAL > & |
rot |
|
) |
| |
Principal components analysis.
- Parameters
-
[in] | rm_mean,rm_sd | Should the column means/sds be removed? |
[in,out] | x | Input data. Values are overwritten. |
[out] | sdev | Standard deviations of the principal components. |
[out] | rot | The variable loadings. |
- Implementation Details\n Uses linalg::svd().
- Memory Allocations\n If the dimensions of the outputs are inappropriately sized, they
- will automatically be re-allocated.
- Exceptions\n If a reallocation is triggered and fails, a bad_alloc exception
- will be thrown.
- Template Parameters
-
REAL | should be 'float' or 'double'. |
◆ pca() [2/3]
template<typename REAL >
void stats::pca |
( |
const bool |
rm_mean, |
|
|
const bool |
rm_sd, |
|
|
gpumat< REAL > & |
x, |
|
|
gpuvec< REAL > & |
sdev, |
|
|
gpumat< REAL > & |
rot |
|
) |
| |
Principal components analysis.
- Parameters
-
[in] | rm_mean,rm_sd | Should the column means/sds be removed? |
[in,out] | x | Input data. Values are overwritten. |
[out] | sdev | Standard deviations of the principal components. |
[out] | rot | The variable loadings. |
- Implementation Details\n Uses linalg::svd().
- Memory Allocations\n If the dimensions of the outputs are inappropriately sized, they
- will automatically be re-allocated.
- Exceptions\n If a reallocation is triggered and fails, a bad_alloc exception
- will be thrown.
- Template Parameters
-
REAL | should be 'float' or 'double'. |
◆ pca() [3/3]
template<typename REAL >
void stats::pca |
( |
const bool |
rm_mean, |
|
|
const bool |
rm_sd, |
|
|
mpimat< REAL > & |
x, |
|
|
cpuvec< REAL > & |
sdev, |
|
|
mpimat< REAL > & |
rot |
|
) |
| |
Principal components analysis.
- Parameters
-
[in] | rm_mean,rm_sd | Should the column means/sds be removed? |
[in,out] | x | Input data. Values are overwritten. |
[out] | sdev | Standard deviations of the principal components. |
[out] | rot | The variable loadings. |
- Implementation Details\n Uses linalg::svd().
- Memory Allocations\n If the dimensions of the outputs are inappropriately sized, they
- will automatically be re-allocated.
- Exceptions\n If a reallocation is triggered and fails, a bad_alloc exception
- will be thrown.
- Template Parameters
-
REAL | should be 'float' or 'double'. |