Fourier cosine basis.
More...
#include <basis.hpp>
|
| Basis (double lx, double ly, unsigned int num_basis) |
| Constructor. More...
|
|
vec | fourierBasis (const vec &x) const |
| Compose cosine basis functions given positon. More...
|
|
mat | gradFourierBasis (const vec &x) const |
| Compose gradient cosine basis functions. More...
|
|
vec | spatialCoeff (const vec &phi_vals, const mat &phi_grid) const |
| Compose spatial fourier coefficients. More...
|
|
vec | trajCoeff (const mat &xt) const |
| Compose trajectory fourier coefficients. More...
|
|
Fourier cosine basis.
Definition at line 51 of file basis.hpp.
◆ Basis()
ergodic_exploration::Basis::Basis |
( |
double |
lx, |
|
|
double |
ly, |
|
|
unsigned int |
num_basis |
|
) |
| |
Constructor.
- Parameters
-
lx | - x-axis lenght of domain |
ly | - y-axis lenght of domain |
num_basis | - number of each basis functions per dimension |
Definition at line 48 of file basis.cpp.
◆ fourierBasis()
vec ergodic_exploration::Basis::fourierBasis |
( |
const vec & |
x | ) |
const |
Compose cosine basis functions given positon.
- Parameters
-
- Returns
- cosine basis functions (num_basis^2 x 1)
x must be on domain [0 lx] x [0 ly]
Definition at line 79 of file basis.cpp.
◆ gradFourierBasis()
mat ergodic_exploration::Basis::gradFourierBasis |
( |
const vec & |
x | ) |
const |
Compose gradient cosine basis functions.
- Parameters
-
- Returns
- gradient of each basis function (2 x num_basis^2)
x must be on domain [0 lx] x [0 ly]
Definition at line 91 of file basis.cpp.
◆ spatialCoeff()
vec ergodic_exploration::Basis::spatialCoeff |
( |
const vec & |
phi_vals, |
|
|
const mat & |
phi_grid |
|
) |
| const |
Compose spatial fourier coefficients.
- Parameters
-
phi_vals | - target evaluated at each grid cell in phi_grid |
phi_grid | - discretization of fourier domain |
- Returns
- spatial fourier coefficients (num_basis^2 x 1)
phi_grid is not the occupancy grid, the first row contains the x-cordinates and the second row contains the corresponding y-coordinates. The index of the elements in phi_vals must correspond to the columns in phi_grid.
Definition at line 122 of file basis.cpp.
◆ trajCoeff()
vec ergodic_exploration::Basis::trajCoeff |
( |
const mat & |
xt | ) |
const |
Compose trajectory fourier coefficients.
- Parameters
-
- Returns
- trajectory fourier coefficients (num_basis^2 x 1)
xt must be on domain [0 lx] x [0 ly] and robot heading is not required
Definition at line 109 of file basis.cpp.
◆ ErgodicControl
◆ k_
imat ergodic_exploration::Basis::k_ |
|
private |
◆ lamdak_
vec ergodic_exploration::Basis::lamdak_ |
|
private |
◆ lx_
double ergodic_exploration::Basis::lx_ |
|
private |
◆ ly_
double ergodic_exploration::Basis::ly_ |
|
private |
◆ total_basis_
unsigned int ergodic_exploration::Basis::total_basis_ |
|
private |
The documentation for this class was generated from the following files: