#include "Model/Constraints.hpp"
#include "Model/ConsItem.hpp"
#include "Basic/Utilities.hpp"
#include <math.h>
Functions | |
void | constraints_print (const Constraints &constraints) |
int | modify_constraints_on_sill (Constraints &constraints) |
double | constraints_get (const Constraints &constraints, const EConsType &icase, int igrf, int icov, const EConsElem &icons, int iv1, int iv2) |
int | add_sill_constraints (Constraints &constraints, double constantSill) |
int | add_unit_sill_constraints (Constraints &constraints) |
int add_sill_constraints | ( | Constraints & | constraints, |
double | constantSill | ||
) |
Add constraints to the Option_AutoFit structure
[in] | constraints | Constraints structure |
[in] | constantSill | Constant value for the Sill as a constraint |
int add_unit_sill_constraints | ( | Constraints & | constraints | ) |
Add constraints (all equal to 1) to the Option_AutoFit structure
[in] | constraints | Constraints structure |
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
[in,out] | constraints | Constraints structure |
[in] | icase | Parameter type (EConsType) |
[in] | igrf | Rank of the Gaussian Random Function |
[in] | icov | Rank of the structure (starting from 0) |
[in] | icons | Type of the constraint (EConsElem) |
[in] | iv1 | Rank of the first variable |
[in] | iv2 | Rank of the second variable |
void constraints_print | ( | const Constraints & | constraints | ) |
Print the Auto Fitting Constraints Structure
[in] | constraints | Constraints structure |
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)
[in] | constraints | Constraints structure |