1.5.1
CCC
 
ConsItem Class Reference

#include <ConsItem.hpp>

Inheritance diagram for ConsItem:
AStringable ICloneable

Detailed Description

This class is used:

  • to define the constraints for the Model Automatic Fitting (authAssign true)
  • to define the non-stationary parameters of a Model

Public Member Functions

 ConsItem (const CovParamId &paramid, const EConsType &type=EConsType::fromKey("DEFAULT"), double value=0.)
 
 ConsItem (const ConsItem &m)
 
ConsItemoperator= (const ConsItem &m)
 
virtual ~ConsItem ()
 
virtual String toString (const AStringFormat *strfmt=nullptr) const override
 ICloneable interface. More...
 
const EConsElem & getType () const
 
int getIGrf () const
 
int getICov () const
 
int getIV1 () const
 
int getIV2 () const
 
void setValue (double value)
 
void setIcase (const EConsType &type)
 
const EConsType & getIcase () const
 
double getValue () const
 
bool matchIGrf (int igrf0) const
 
bool matchICov (int icov0) const
 
bool matchType (const EConsElem &type0) const
 
bool matchIV1 (int iv10) const
 
bool matchIV2 (int iv20) const
 
const CovParamIdgetParamId () const
 
- Public Member Functions inherited from AStringable
 AStringable ()
 
 AStringable (const AStringable &r)
 
AStringableoperator= (const AStringable &r)
 
virtual ~AStringable ()
 
virtual void display (const AStringFormat *strfmt=nullptr) const final
 
virtual void display (int level) const final
 
- Public Member Functions inherited from ICloneable
 ICloneable ()
 
virtual ~ICloneable ()
 
virtual ICloneableclone () const =0
 

Static Public Member Functions

static ConsItemcreate (const CovParamId &paramid, const EConsType &type=EConsType::fromKey("DEFAULT"), double value=0.)
 
static ConsItemcreateFromParamId (int icov=0, const EConsElem &elem=EConsElem::fromKey("UNKNOWN"), const EConsType &type=EConsType::fromKey("DEFAULT"), double value=0., int igrf=0, int iv1=0, int iv2=0)
 
static ConsItem define (const EConsElem &elem=EConsElem::fromKey("UNKNOWN"), int icov=0, int iv1=0, int iv2=0, const EConsType &type=EConsType::fromKey("DEFAULT"), double value=0.)
 

Constructor & Destructor Documentation

◆ ConsItem() [1/2]

ConsItem::ConsItem ( const CovParamId paramid,
const EConsType &  type = EConsType::fromKey("DEFAULT"),
double  value = 0. 
)

◆ ConsItem() [2/2]

ConsItem::ConsItem ( const ConsItem m)

◆ ~ConsItem()

ConsItem::~ConsItem ( )
virtual

Member Function Documentation

◆ create()

ConsItem * ConsItem::create ( const CovParamId paramid,
const EConsType &  type = EConsType::fromKey("DEFAULT"),
double  value = 0. 
)
static

◆ createFromParamId()

ConsItem * ConsItem::createFromParamId ( int  icov = 0,
const EConsElem &  elem = EConsElem::fromKey("UNKNOWN"),
const EConsType &  type = EConsType::fromKey("DEFAULT"),
double  value = 0.,
int  igrf = 0,
int  iv1 = 0,
int  iv2 = 0 
)
static

◆ define()

ConsItem ConsItem::define ( const EConsElem &  elem = EConsElem::fromKey("UNKNOWN"),
int  icov = 0,
int  iv1 = 0,
int  iv2 = 0,
const EConsType &  type = EConsType::fromKey("DEFAULT"),
double  value = 0. 
)
static

This function creates a constraints on a parameter This constraint will be used subsequently during the variogram fitting

Parameters
elemThe type of item on which the constraints applies (EConsElem.hpp)
icovThe rank of the covariance
iv1The rank of the first variable
iv2The rank of the second variable
typeThe type of constraints (EConsType.hpp)
valueThe value assigned to the constraint
Remarks
Do not forget to delete object after usage
Returns

◆ getIcase()

const EConsType& ConsItem::getIcase ( ) const
inline

◆ getICov()

int ConsItem::getICov ( ) const
inline

◆ getIGrf()

int ConsItem::getIGrf ( ) const
inline

◆ getIV1()

int ConsItem::getIV1 ( ) const
inline

◆ getIV2()

int ConsItem::getIV2 ( ) const
inline

◆ getParamId()

const CovParamId& ConsItem::getParamId ( ) const
inline

◆ getType()

const EConsElem& ConsItem::getType ( ) const
inline

◆ getValue()

double ConsItem::getValue ( ) const
inline

◆ matchICov()

bool ConsItem::matchICov ( int  icov0) const
inline

◆ matchIGrf()

bool ConsItem::matchIGrf ( int  igrf0) const
inline

◆ matchIV1()

bool ConsItem::matchIV1 ( int  iv10) const
inline

◆ matchIV2()

bool ConsItem::matchIV2 ( int  iv20) const
inline

◆ matchType()

bool ConsItem::matchType ( const EConsElem &  type0) const
inline

◆ operator=()

ConsItem & ConsItem::operator= ( const ConsItem m)

◆ setIcase()

void ConsItem::setIcase ( const EConsType &  type)
inline

◆ setValue()

void ConsItem::setValue ( double  value)
inline

◆ toString()

String ConsItem::toString ( const AStringFormat strfmt = nullptr) const
overridevirtual

ICloneable interface.

AStringable Interface

Reimplemented from AStringable.


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