| 115 | } |
| 116 | public: |
| 117 | DenseKernel(const MatrixXf & f, KernelType ktype, NormalizationType ntype):f_(f), ktype_(ktype), ntype_(ntype) { |
| 118 | if (ktype_ == DIAG_KERNEL) { |
| 119 | parameters_ = VectorXf::Ones( f.rows() ); |
| 120 | } |
| 121 | else if( ktype == FULL_KERNEL ) { |
| 122 | parameters_ = MatrixXf::Identity( f.rows(), f.rows() ); |
| 123 | } |
| 124 | initLattice( f ); |
| 125 | } |
| 126 | virtual void apply( MatrixXf & out, const MatrixXf & Q ) const { |
| 127 | filter( out, Q, false ); |
| 128 | } |