1.5.1
CCC
 
Constraints.hpp File Reference
#include "gstlearn_export.hpp"
#include "Enum/EConsElem.hpp"
#include "Enum/EConsType.hpp"
#include "Basic/AStringable.hpp"
#include <vector>

Classes

class  Constraints
 

Functions

GSTLEARN_EXPORT double constraints_get (const Constraints &constraints, const EConsType &icase, int igrf, int icov, const EConsElem &icons, int v1, int v2)
 
GSTLEARN_EXPORT void constraints_print (const Constraints &constraints)
 
GSTLEARN_EXPORT int modify_constraints_on_sill (Constraints &constraints)
 
GSTLEARN_EXPORT int add_unit_sill_constraints (Constraints &constraints)
 

Function Documentation

◆ add_unit_sill_constraints()

GSTLEARN_EXPORT int add_unit_sill_constraints ( Constraints constraints)

Add constraints (all equal to 1) to the Option_AutoFit structure

Returns
Error return code
Parameters
[in]constraintsConstraints structure

◆ constraints_get()

GSTLEARN_EXPORT double constraints_get ( const Constraints constraints,
const EConsType &  icase,
int  igrf,
int  icov,
const EConsElem &  icons,
int  iv1,
int  iv2 
)

Return the constraint value (if defined) or TEST

Returns
Returned value or TEST
Parameters
[in,out]constraintsConstraints structure
[in]icaseParameter type (EConsType)
[in]igrfRank of the Gaussian Random Function
[in]icovRank of the structure (starting from 0)
[in]iconsType of the constraint (EConsElem)
[in]iv1Rank of the first variable
[in]iv2Rank of the second variable

◆ constraints_print()

GSTLEARN_EXPORT void constraints_print ( const Constraints constraints)

Print the Auto Fitting Constraints Structure

Parameters
[in]constraintsConstraints structure

◆ modify_constraints_on_sill()

GSTLEARN_EXPORT int modify_constraints_on_sill ( Constraints constraints)

If a constraint concerns a sill, take its square root as it corresponds to a constraints on AIC (not on a sill directly) due to the fact that it will be processed in FOXLEG (not in GOULARD) This transform only makes sense for MONOVARIATE case (the test should have been performed beforehand)

Returns
Error code (if the sill constraint is negative)
Parameters
[in]constraintsConstraints structure