---
name: "mlpack_kpca_NystroemKernelRule"
section: "3"
platform: "linux"
package: "mlpack-doc"
version: "1.0.10-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/mlpack_kpca_NystroemKernelRule"
---

# mlpack\_kpca\_NystroemKernelRule(3)

## NAME

mlpack::kpca::NystroemKernelRule\< KernelType, PointSelectionPolicy \> -

## SYNOPSIS

### Static Public Member Functions

static void **ApplyKernelMatrix** (const arma::mat &data, arma::mat &transformedData, arma::vec &eigval, arma::mat &eigvec, const size\_t rank, KernelType kernel=KernelType())\
 *Construct the kernel matrix approximation using the nystroem method.*

## Detailed Description

### template\<typename KernelType, typename PointSelectionPolicy = kernel::KMeansSelection\<\>\>class mlpack::kpca::NystroemKernelRule\< KernelType, PointSelectionPolicy \>

Definition at line 37 of file nystroem\_method.hpp.

## Member Function Documentation

### template\<typename KernelType , typename PointSelectionPolicy = kernel::KMeansSelection\<\>\> static void mlpack::kpca::NystroemKernelRule\< KernelType, PointSelectionPolicy \>::ApplyKernelMatrix (const arma::mat &data, arma::mat &transformedData, arma::vec &eigval, arma::mat &eigvec, const size\_trank, KernelTypekernel = `KernelType()`)` [inline]`, ` [static]`

Construct the kernel matrix approximation using the nystroem method.

**Parameters:**

*data* Input data points. \
 *transformedData* Matrix to output results into. \
 *eigval* KPCA eigenvalues will be written to this vector. \
 *eigvec* KPCA eigenvectors will be written to this matrix. \
 *rank* Rank to be used for matrix approximation. \
 *kernel* Kernel to be used for computation.

Definition at line 50 of file nystroem\_method.hpp.

References mlpack::kernel::NystroemMethod\< KernelType, PointSelectionPolicy \>::Apply().

## Author

Generated automatically by Doxygen for MLPACK from the source code.
