#include <RuleProp.hpp>
|
| RuleProp () |
|
| RuleProp (const RuleProp &m) |
|
RuleProp & | operator= (const RuleProp &m) |
|
virtual | ~RuleProp () |
|
String | toString (const AStringFormat *strfmt=nullptr) const override |
| Interface to AStringable.
|
|
Id | resetFromDb (const Db *dbprop, const 1 &propcst=1()) |
|
Id | resetFromRule (const Rule *rule, const 1 &propcst=1()) |
|
Id | resetFromRuleAndDb (const Rule *rule, const Db *dbprop) |
|
Id | resetFromRules (const Rule *rule1, const Rule *rule2, const 1 &propcst=1()) |
|
Id | resetFromRulesAndDb (const Rule *rule1, const Rule *rule2, const Db *dbprop) |
|
const Db * | getDbprop () const |
|
void | setDbprop (const Db *dbprop) |
|
bool | isFlagStat () const |
|
void | setFlagStat (bool flagStat) |
|
const & | getPropCst () const |
|
void | setPropCst (const 1 &propcst) |
|
const Rule * | getRule (Id rank=0) const |
|
void | addRule (const Rule *rule) |
|
void | clearRule () |
|
Id | getNRule () const |
|
Id | fit (Db *db, const VarioParam *varioparam, Id ngrfmax=1, bool verbose=false) |
|
Id | gaussToCategory (Db *db, const NamingConvention &namconv=NamingConvention("Facies", true, true, true, ELoc::fromKey("FACIES"))) const |
|
Id | categoryToThresh (Db *db, const NamingConvention &namconv=NamingConvention("Bounds")) const |
|
Id | computeAllThreshes (Db *db, const NamingConvention &namconv=NamingConvention("Thresh")) const |
|
| AStringable () |
|
| AStringable (const AStringable &r) |
|
AStringable & | operator= (const AStringable &r) |
|
virtual | ~AStringable () |
|
virtual void | display (const AStringFormat *strfmt=nullptr) const final |
|
virtual void | display (Id level) const final |
|
◆ RuleProp() [1/2]
gstlrn::RuleProp::RuleProp |
( |
| ) |
|
◆ RuleProp() [2/2]
gstlrn::RuleProp::RuleProp |
( |
const RuleProp & |
m | ) |
|
◆ ~RuleProp()
gstlrn::RuleProp::~RuleProp |
( |
| ) |
|
|
virtual |
◆ addRule()
void gstlrn::RuleProp::addRule |
( |
const Rule * |
rule | ) |
|
◆ categoryToThresh()
Derive the bounds variables for a Db (depending on the Category information of each sample)
- Parameters
-
db | Pointer to the Db structure (in/out) |
namconv | Naming convention |
- Returns
- Error return code
◆ clearRule()
void gstlrn::RuleProp::clearRule |
( |
| ) |
|
◆ computeAllThreshes()
Calculate all the thresholds at each sample of a Db
- Parameters
-
db | Pointer to the Db structure (in/out) |
namconv | Naming convention |
- Returns
- Error return code
◆ createFromDb()
RuleProp * gstlrn::RuleProp::createFromDb |
( |
const Db * |
dbprop, |
|
|
const 1 & |
propcst = 1() |
|
) |
| |
|
static |
◆ createFromRule()
RuleProp * gstlrn::RuleProp::createFromRule |
( |
const Rule * |
rule, |
|
|
const 1 & |
propcst = 1() |
|
) |
| |
|
static |
◆ createFromRuleAndDb()
RuleProp * gstlrn::RuleProp::createFromRuleAndDb |
( |
const Rule * |
rule, |
|
|
const Db * |
dbprop |
|
) |
| |
|
static |
◆ createFromRules()
RuleProp * gstlrn::RuleProp::createFromRules |
( |
const Rule * |
rule1, |
|
|
const Rule * |
rule2, |
|
|
const 1 & |
propcst = 1() |
|
) |
| |
|
static |
◆ createFromRulesAndDb()
RuleProp * gstlrn::RuleProp::createFromRulesAndDb |
( |
const Rule * |
rule1, |
|
|
const Rule * |
rule2, |
|
|
const Db * |
dbprop |
|
) |
| |
|
static |
◆ fit()
Id gstlrn::RuleProp::fit |
( |
Db * |
db, |
|
|
const VarioParam * |
varioparam, |
|
|
Id |
ngrfmax = 1 , |
|
|
bool |
verbose = false |
|
) |
| |
◆ gaussToCategory()
Convert a set of Gaussian vectors into the corresponding Facies in a Db
- Parameters
-
db | Pointer to the Db structure (in/out) |
namconv | Naming convention |
- Returns
- Error return code
◆ getDbprop()
const Db * gstlrn::RuleProp::getDbprop |
( |
| ) |
const |
|
inline |
◆ getNRule()
Id gstlrn::RuleProp::getNRule |
( |
| ) |
const |
|
inline |
◆ getPropCst()
const & gstlrn::RuleProp::getPropCst |
( |
| ) |
const |
|
inline |
◆ getRule()
const Rule * gstlrn::RuleProp::getRule |
( |
Id |
rank = 0 | ) |
const |
◆ isFlagStat()
bool gstlrn::RuleProp::isFlagStat |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ resetFromDb()
Id gstlrn::RuleProp::resetFromDb |
( |
const Db * |
dbprop, |
|
|
const 1 & |
propcst = 1() |
|
) |
| |
This constructor is used in the exceptional case where the Rule is not yet defined (typically when inferring the Rule)
- Parameters
-
dbprop | Db containing the Proportion information (ELoc::P fields) |
propcst | Vector of constant proportions |
◆ resetFromRule()
Id gstlrn::RuleProp::resetFromRule |
( |
const Rule * |
rule, |
|
|
const 1 & |
propcst = 1() |
|
) |
| |
◆ resetFromRuleAndDb()
Id gstlrn::RuleProp::resetFromRuleAndDb |
( |
const Rule * |
rule, |
|
|
const Db * |
dbprop |
|
) |
| |
◆ resetFromRules()
Id gstlrn::RuleProp::resetFromRules |
( |
const Rule * |
rule1, |
|
|
const Rule * |
rule2, |
|
|
const 1 & |
propcst = 1() |
|
) |
| |
◆ resetFromRulesAndDb()
Id gstlrn::RuleProp::resetFromRulesAndDb |
( |
const Rule * |
rule1, |
|
|
const Rule * |
rule2, |
|
|
const Db * |
dbprop |
|
) |
| |
◆ setDbprop()
void gstlrn::RuleProp::setDbprop |
( |
const Db * |
dbprop | ) |
|
|
inline |
◆ setFlagStat()
void gstlrn::RuleProp::setFlagStat |
( |
bool |
flagStat | ) |
|
|
inline |
◆ setPropCst()
void gstlrn::RuleProp::setPropCst |
( |
const 1 & |
propcst | ) |
|
|
inline |
◆ toString()
The documentation for this class was generated from the following files:
- include/LithoRule/RuleProp.hpp
- src/LithoRule/RuleProp.cpp