1.11.1
CCC
 
Loading...
Searching...
No Matches
gstlrn::RuleShadow Class Reference

#include <RuleShadow.hpp>

Inheritance diagram for gstlrn::RuleShadow:
gstlrn::Rule gstlrn::AStringable gstlrn::ASerializable gstlrn::ICloneable

Public Member Functions

 RuleShadow ()
 
 RuleShadow (double slope, double sh_dsup, double sh_down, const 1 &shift)
 
 RuleShadow (const RuleShadow &m)
 
RuleShadowoperator= (const RuleShadow &m)
 
virtual ~RuleShadow ()
 
String getNFName () const override
 ICloneable Interface.
 
String displaySpecific () const override
 
Id particularities (Db *db, const Db *dbprop, Model *model, Id flag_grid_check, Id flag_stat) const override
 
Id gaus2facData (const PropDef &propdef, Db *dbin, Db *dbout, const VectorBool &flag_used, Id ipgs, Id isimu, Id nbsimu) const override
 
Id gaus2facResult (const PropDef &propdef, Db *dbout, const VectorBool &flag_used, Id ipgs, Id isimu, Id nbsimu) const override
 
Id evaluateBounds (const PropDef &propdef, Db *dbin, Db *dbout, Id isimu, Id igrf, Id ipgs, Id nbsimu) const override
 
double getShDown () const
 
double getShDsup () const
 
double getSlope () const
 
double getDMax () const
 
double getTgte () const
 
double getIncr () const
 
const & getShift () const
 
double getShift (Id idim) const
 
- Public Member Functions inherited from gstlrn::Rule
 Rule (double rho=0.)
 
 Rule (const 1 &icodes)
 Create a Rule from a vector of integers.
 
 Rule (const Rule &m)
 
Ruleoperator= (const Rule &m)
 
virtual ~Rule ()
 
String toString (const AStringFormat *strfmt=nullptr) const override
 ICloneable Interface.
 
Id resetFromNames (const VectorString &nodnames, double rho=0.)
 
Id resetFromFaciesCount (Id nfacies, double rho=0.)
 
virtual bool checkModel (const Model *model, Id nvar=0) const
 
Id getFlagProp () const
 
const ERule & getModeRule () const
 
double getRho () const
 
const NodegetMainNode () const
 
void setFlagProp (Id flagProp)
 
void setRho (double rho) const
 
void setModeRule (const ERule &modeRule)
 TODO : Check if mutable is really necessary.
 
Id setProportions (const 1 &proportions=1(), bool flagGaussian=true) const
 
Id statistics (Id verbose, Id *node_tot, Id *nfac_tot, Id *nmax_tot, Id *ny1_tot, Id *ny2_tot, double *prop_tot) const
 
Id getNFacies () const
 
Id getNGRF () const
 
Id getNY1 () const
 
Id getNY2 () const
 
bool isYUsed (Id igrf) const
 
VectorBool whichGRFUsed () const
 
double getProportion (Id facies)
 
std::array< double, 4 > getThresh (Id facies) const
 
 getThreshFromRectangle (Id rect, Id *facies)
 
Id getFaciesFromGaussian (double y1, double y2) const
 
 getNodes () const
 
void updateShift () const
 
VectorString getFaciesNames () const
 
 getFaciesColors () const
 
 getFaciesValues () const
 
String getFaciesName (Id facies) const
 
Id getFaciesColor (Id facies) const
 
Id getFaciesValue (Id facies) const
 
String getFaciesColorName (Id facies) const
 
double getScore () const
 
void setFaciesNames (const VectorString &facnames)
 
void setFaciesColors (const 1 &faccols)
 
void setFaciesValues (const 1 &facvalues)
 
void setFaciesName (Id facies, const String &name)
 
void setFaciesValue (Id facies, Id value)
 
void setFaciesColorByName (Id facies, const String &color)
 
void setFaciesColorByHexa (Id facies, const String &hexa)
 
void setFaciesColorByInt (Id facies, const Id &value)
 
void setCharacteristics (Id facies, const String &name=String(), const String &color=String(), Id value=ITEST)
 Define the characteristics of a given facies.
 
void setScore (double score)
 
String namesPrint () const
 
- Public Member Functions inherited from gstlrn::AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (Id level) const final
 
void printConcreteClassName () const
 
- Public Member Functions inherited from gstlrn::ASerializable
 ASerializable ()
 
 ASerializable (const ASerializable &r)=default
 
ASerializableoperator= (const ASerializable &r)=default
 
 ASerializable (ASerializable &&r) noexcept=default
 
ASerializableoperator= (ASerializable &&r) noexcept=default
 
virtual ~ASerializable ()=default
 
bool dumpToNF (const String &NFFilename, const EFormatNF &format=EFormatNF::fromKey("DEFAULT")) const
 Dump the contents of an object into an Output File using a given Output NF Format.
 
void setDefaultFormatNF (const EFormatNF &format)
 
- Public Member Functions inherited from gstlrn::ICloneable
 ICloneable ()
 
virtual ~ICloneable ()
 
virtual ICloneableclone () const =0
 
std::shared_ptr< ICloneablecloneShared () const
 
std::unique_ptr< ICloneablecloneUnique () const
 

Additional Inherited Members

- Static Public Member Functions inherited from gstlrn::Rule
static Rulecreate (double rho=0.)
 
static RulecreateFromNF (const String &NFFilename, bool verbose=true)
 
static RulecreateFromNames (const VectorString &nodnames, double rho=0.)
 
static RulecreateFromFaciesCount (Id nfacies, double rho=0.)
 
- Static Public Member Functions inherited from gstlrn::ASerializable
static String buildFileName (Id status, const String &filename, bool ensureDirExist=false)
 
static String getFileIdentity (const String &filename, bool verbose=false)
 
static void setPrefixName (const String &prefixName)
 
static void unsetPrefixName ()
 
static const StringgetPrefixName ()
 

Constructor & Destructor Documentation

◆ RuleShadow() [1/3]

gstlrn::RuleShadow::RuleShadow ( )

◆ RuleShadow() [2/3]

gstlrn::RuleShadow::RuleShadow ( double  slope,
double  sh_dsup,
double  sh_down,
const 1 &  shift 
)

Defining the Lithotype Rule in the case of Shadow

Parameters
slopeSlope definition
sh_dsupMaximum threshold
sh_downMinimum threshold
shiftShift orientation

◆ RuleShadow() [3/3]

gstlrn::RuleShadow::RuleShadow ( const RuleShadow m)

◆ ~RuleShadow()

gstlrn::RuleShadow::~RuleShadow ( )
virtual

Member Function Documentation

◆ displaySpecific()

String gstlrn::RuleShadow::displaySpecific ( ) const
overridevirtual

Reimplemented from gstlrn::Rule.

◆ evaluateBounds()

Id gstlrn::RuleShadow::evaluateBounds ( const PropDef propdef,
Db dbin,
Db dbout,
Id  isimu,
Id  igrf,
Id  ipgs,
Id  nbsimu 
) const
overridevirtual

Set the bounds and possibly add replicates (Shadow)

Returns
Error return code
Parameters
[in]propdefPropDef structure
[in]dbinDb structure
[in]dboutDb grid structure
[in]isimuRank of the simulation (if EProcessOper::CONDITIONAL)
[in]igrfRank of the GRF
[in]ipgsRank of the GS
[in]nbsimuNumber of simulations (if EProcessOper::CONDITIONAL)

Reimplemented from gstlrn::Rule.

◆ gaus2facData()

Id gstlrn::RuleShadow::gaus2facData ( const PropDef propdef,
Db dbin,
Db dbout,
const VectorBool flag_used,
Id  ipgs,
Id  isimu,
Id  nbsimu 
) const
overridevirtual

Combine the underlying GRF into a facies value at data points (Shadow)

Returns
Error return code
Parameters
[in]propdefPropDef structure
[in]dbinDb input structure
[in]dboutDb output structure
[in]flag_used1 if the gaussian is used; 0 otherwise
[in]ipgsRank of the PGS
[in]isimuRank of the simulation
[in]nbsimuNumber of simulations
Remarks
Attributes ELoc::GAUSFAC are mandatory
Attributes ELoc::FACIES are mandatory

Reimplemented from gstlrn::Rule.

◆ gaus2facResult()

Id gstlrn::RuleShadow::gaus2facResult ( const PropDef propdef,
Db dbout,
const VectorBool flag_used,
Id  ipgs,
Id  isimu,
Id  nbsimu 
) const
overridevirtual

Combine the underlying GRF into a facies value (Shadow case)

Returns
Error return code
Parameters
[in]propdefPropDef structure
[in]dboutDb output structure
[in]flag_used1 if the gaussian is used; 0 otherwise
[in]ipgsRank of the PGS
[in]isimuRank of the simulation
[in]nbsimuNumber of simulations
Remarks
Attributes ELoc::FACIES and ELoc::SIMU are mandatory

Reimplemented from gstlrn::Rule.

◆ getDMax()

double gstlrn::RuleShadow::getDMax ( ) const
inline

◆ getIncr()

double gstlrn::RuleShadow::getIncr ( ) const
inline

◆ getNFName()

String gstlrn::RuleShadow::getNFName ( ) const
inlineoverridevirtual

ICloneable Interface.

ASerializable Interface

Reimplemented from gstlrn::Rule.

◆ getShDown()

double gstlrn::RuleShadow::getShDown ( ) const
inline

◆ getShDsup()

double gstlrn::RuleShadow::getShDsup ( ) const
inline

◆ getShift() [1/2]

const & gstlrn::RuleShadow::getShift ( ) const
inline

◆ getShift() [2/2]

double gstlrn::RuleShadow::getShift ( Id  idim) const
inline

◆ getSlope()

double gstlrn::RuleShadow::getSlope ( ) const
inline

◆ getTgte()

double gstlrn::RuleShadow::getTgte ( ) const
inline

◆ operator=()

RuleShadow & gstlrn::RuleShadow::operator= ( const RuleShadow m)

◆ particularities()

Id gstlrn::RuleShadow::particularities ( Db db,
const Db dbprop,
Model model,
Id  flag_grid_check,
Id  flag_stat 
) const
overridevirtual

Define the particularities of the PGS model (for Shadow)

Returns
Error return code
Parameters
[in]dbDb structure
[in]dbpropDb structure used for proportions
[in]modelModel structure (only used for shift option)
[in]flag_grid_check1 if grid is compulsory; 0 otherwise (only for SHIFT)
[in]flag_stat1 for stationary; 0 otherwise

Reimplemented from gstlrn::Rule.


The documentation for this class was generated from the following files: