#include <OptimCostBinary.hpp>
◆ OptimCostBinary() [1/2]
gstlrn::OptimCostBinary::OptimCostBinary |
( |
| ) |
|
◆ OptimCostBinary() [2/2]
◆ ~OptimCostBinary()
gstlrn::OptimCostBinary::~OptimCostBinary |
( |
| ) |
|
|
virtual |
◆ calculateGradient()
void gstlrn::OptimCostBinary::calculateGradient |
( |
const 1 & |
indic, |
|
|
const 1 & |
lambda, |
|
|
double * |
out |
|
) |
| |
|
virtual |
Calculate the Gradient
- Parameters
-
[in] | indic | Array containing the Facies indicators (see remarks) (Dimension: npoint) |
[in] | lambda | Array of input values |
[out] | out | Array of output gradients |
Implements gstlrn::IOptimCost.
◆ getNPoint()
Id gstlrn::OptimCostBinary::getNPoint |
( |
| ) |
const |
Returns the Number of Data Points
◆ getNVertex()
Id gstlrn::OptimCostBinary::getNVertex |
( |
| ) |
const |
Returns the Number of Meshing Vertices
◆ isInitialized()
Id gstlrn::OptimCostBinary::isInitialized |
( |
| ) |
const |
|
inline |
◆ minimize()
gstlrn::OptimCostBinary::minimize |
( |
1 & |
indic, |
|
|
bool |
verbose = false , |
|
|
Id |
maxiter = 100 , |
|
|
double |
eps = 5.e-4 |
|
) |
| |
Perform the minimization
- Returns
- The array of facies proportions (Dimension: nvertex)
- Parameters
-
[in] | indic | Array containing the Facies indicators (see remarks) (Dimension: npoint) |
[in] | verbose | Verbose flag |
[in] | maxiter | Maximum number of iterations for Optimization algo. |
[in] | eps | Tolerance for Optimization algorithm |
◆ operator=()
◆ reset()
void gstlrn::OptimCostBinary::reset |
( |
PrecisionOp * |
pmat, |
|
|
const ProjMatrix * |
projdata, |
|
|
const ProjMatrix * |
projseis = nullptr , |
|
|
const 1 & |
propseis = 1() , |
|
|
const 1 & |
varseis = 1() |
|
) |
| |
Initialize the Binary Cost Operator
- Parameters
-
[in] | pmat | The precision matrix to be optimized |
[in] | projdata | The Projection operator between Data and Meshing |
[in] | projseis | The Projection operator between Seismic and Meshing |
[in] | propseis | Array of facies proportions |
[in] | varseis | Array of variance attached to the seismic |
◆ setMeanProportion()
Id gstlrn::OptimCostBinary::setMeanProportion |
( |
double |
meanprop | ) |
|
Set the Mean proportion for the indicator
- Parameters
-
[in] | meanprop | Value of the mean proportion (raw scale) |
◆ setPreCondParams()
static void gstlrn::OptimCostBinary::setPreCondParams |
( |
Id |
chebncmax = 10001 , |
|
|
double |
chebtol = 5.e-3 |
|
) |
| |
|
inlinestatic |
Set the constant parameters for internal Pre-Conditioner
◆ toggleSeismic()
void gstlrn::OptimCostBinary::toggleSeismic |
( |
bool |
status | ) |
|
Toggle the use of the Seismic constraint
- Parameters
-
The documentation for this class was generated from the following files:
- include/LinearOp/OptimCostBinary.hpp
- src/LinearOp/OptimCostBinary.cpp