Turbo Optimizer for a specific 2-D environment,.
More...
#include <TurboOptimizer.hpp>
|
| TurboOptimizer (int nx=2, int ny=2, double dx=1., double dy=1., double x0=0., double y0=0., double scale=1., double sill=1., int param=1, int flagOne=1) |
|
| TurboOptimizer (const TurboOptimizer &tbo) |
|
TurboOptimizer & | operator= (const TurboOptimizer &tbo) |
|
virtual | ~TurboOptimizer () |
|
void | setGrid (int nx=2, int ny=2, double dx=1., double dy=1., double x0=0., double y0=0.) |
|
void | setModelByRange (double range=1., double sill=1., int param=1) |
|
void | setModelByScale (double scale=1., double sill=1., int param=1) |
|
void | setEnviron (int flagOne=1) |
|
void | run (bool verbose=false) |
|
VectorDouble | getBlin () const |
|
VectorDouble | getTildeC () const |
|
VectorDouble | getLambda () const |
|
TripletND | getS () const |
|
TripletND | getQ () const |
|
TripletND | interpolate (const VectorDouble &x, const VectorDouble &y) const |
|
VectorInt | interpolate_rows (const VectorDouble &x, const VectorDouble &y) const |
|
VectorInt | interpolate_cols (const VectorDouble &x, const VectorDouble &y) const |
|
VectorDouble | interpolate_values (const VectorDouble &x, const VectorDouble &y) const |
|
VectorInt | getQ_rows () const |
|
VectorInt | getQ_cols () const |
|
VectorDouble | getQ_values () const |
|
void | printClass () const |
|
void | printMeshes () const |
|
void | printS (int nper_batch=5, int row_begin=0, int row_end=0, int col_begin=0, int col_end=0) const |
|
void | printQ (int nper_batch=5, int row_begin=0, int row_end=0, int col_begin=0, int col_end=0) const |
|
int | getHalf () const |
|
int | getCenter () const |
|
int | getNxred () const |
|
int | getPoncif () const |
|
const VectorDouble & | getTildeCT () const |
|
const VectorDouble & | getLambdaT () const |
|
const VectorDouble & | getQT () const |
|
const VectorDouble & | getST () const |
|
Turbo Optimizer for a specific 2-D environment,.
with an isotropic Matérn Model
TurboOptimizer::TurboOptimizer |
( |
int |
nx = 2 , |
|
|
int |
ny = 2 , |
|
|
double |
dx = 1. , |
|
|
double |
dy = 1. , |
|
|
double |
x0 = 0. , |
|
|
double |
y0 = 0. , |
|
|
double |
scale = 1. , |
|
|
double |
sill = 1. , |
|
|
int |
param = 1 , |
|
|
int |
flagOne = 1 |
|
) |
| |
TurboOptimizer::~TurboOptimizer |
( |
| ) |
|
|
virtual |
Allows retrieving the vector Blin
- Returns
- The Blin vector
int TurboOptimizer::getCenter |
( |
| ) |
const |
|
inline |
int TurboOptimizer::getHalf |
( |
| ) |
const |
|
inline |
Allows retrieving the vector Lambda
- Returns
- The Lambda vector
int TurboOptimizer::getNxred |
( |
| ) |
const |
|
inline |
int TurboOptimizer::getPoncif |
( |
| ) |
const |
|
inline |
Allows retrieving the Q sparse matrix
- Returns
- The returned matrix stored as Triplets
VectorInt TurboOptimizer::getQ_cols |
( |
| ) |
const |
|
inline |
VectorInt TurboOptimizer::getQ_rows |
( |
| ) |
const |
|
inline |
Allows retrieving the S sparse matrix
- Returns
- The returned matrix stored as TripletNDs
Allows retrieving the vector TildeC
- Returns
- The TildeC vector
Returns the weights for interpolating points on the meshing
- Parameters
-
x | Vector of X-coordinates for the target points |
y | Vector of Y-coordinates for the target points |
- Returns
- The triplet structure giving the interpolation weights
- Note
- : The triplets contain:
-
: - rows: the index of the target point
-
: - cols: the index of the node of the grid
-
: - values: the corresponding weight
void TurboOptimizer::printClass |
( |
| ) |
const |
Display the parameters of the Method (Grid and Model parameters)
void TurboOptimizer::printMeshes |
( |
| ) |
const |
Print the elements of the Internal Meshing
void TurboOptimizer::printQ |
( |
int |
nper_batch = 5 , |
|
|
int |
row_begin = 0 , |
|
|
int |
row_end = 0 , |
|
|
int |
col_begin = 0 , |
|
|
int |
col_end = 0 |
|
) |
| const |
void TurboOptimizer::printS |
( |
int |
nper_batch = 5 , |
|
|
int |
row_begin = 0 , |
|
|
int |
row_end = 0 , |
|
|
int |
col_begin = 0 , |
|
|
int |
col_end = 0 |
|
) |
| const |
void TurboOptimizer::run |
( |
bool |
verbose = false | ) |
|
This function is compulsory as it performs the calculations and allows retrieval of the matrices
- Parameters
-
void TurboOptimizer::setEnviron |
( |
int |
flagOne = 1 | ) |
|
Generic method to set all the remaining terms of the class
- Parameters
-
flagOne | Starting value for numbering of rows and columns in TripletND |
void TurboOptimizer::setGrid |
( |
int |
nx = 2 , |
|
|
int |
ny = 2 , |
|
|
double |
dx = 1. , |
|
|
double |
dy = 1. , |
|
|
double |
x0 = 0. , |
|
|
double |
y0 = 0. |
|
) |
| |
Definition of the 2-D non rotated Grid
- Parameters
-
nx | Number of nodes along X |
ny | Number of nodes along Y |
dx | Mesh of the grid along X |
dy | Mesh of the grid along Y |
x0 | Origin of the grid along X |
y0 | Origin of the grid along Y |
void TurboOptimizer::setModelByRange |
( |
double |
range = 1. , |
|
|
double |
sill = 1. , |
|
|
int |
param = 1 |
|
) |
| |
Definition of the Model (single isotropic Matérn structure) by range
- Parameters
-
range | Range of the structure |
sill | Sill of the structure |
param | Matérn parameter (third parameter) |
void TurboOptimizer::setModelByScale |
( |
double |
scale = 1. , |
|
|
double |
sill = 1. , |
|
|
int |
param = 1 |
|
) |
| |
Definition of the Model (single isotropic Matérn structure) by scale
- Parameters
-
scale | Scale of the structure |
sill | Sill of the structure |
param | Matérn parameter (third parameter) |
The documentation for this class was generated from the following files: