1.3.1
CCC
 
Rule.cpp File Reference
#include "geoslib_old_f.h"
#include "geoslib_enum.h"
#include "Basic/Utilities.hpp"
#include "Basic/String.hpp"
#include "Basic/AException.hpp"
#include "Basic/ASerializable.hpp"
#include "Basic/OptDbg.hpp"
#include "Model/Model.hpp"
#include "LithoRule/Rule.hpp"
#include "LithoRule/RuleStringFormat.hpp"
#include "LithoRule/Node.hpp"
#include "Db/Db.hpp"
#include <sstream>

Macros

#define THRESH_IDLE   0
 
#define THRESH_Y1   1
 
#define THRESH_Y2   2
 
#define NODES(inode, i)   (nodes[6 * (inode) + (i)])
 
#define FROM_TYPE(inode)   (nodes[6 * (inode) + 0])
 
#define FROM_RANK(inode)   (nodes[6 * (inode) + 1])
 
#define FROM_VERS(inode)   (nodes[6 * (inode) + 2])
 
#define NODE_TYPE(inode)   (nodes[6 * (inode) + 3])
 
#define NODE_RANK(inode)   (nodes[6 * (inode) + 4])
 
#define FACIES(inode)   (nodes[6 * (inode) + 5])
 

Functions

void set_rule_mode (int rule_mode)
 
int get_rule_mode (void)
 
double get_rule_extreme (int mode)
 

Macro Definition Documentation

◆ FACIES

#define FACIES (   inode)    (nodes[6 * (inode) + 5])

◆ FROM_RANK

#define FROM_RANK (   inode)    (nodes[6 * (inode) + 1])

◆ FROM_TYPE

#define FROM_TYPE (   inode)    (nodes[6 * (inode) + 0])

◆ FROM_VERS

#define FROM_VERS (   inode)    (nodes[6 * (inode) + 2])

◆ NODE_RANK

#define NODE_RANK (   inode)    (nodes[6 * (inode) + 4])

◆ NODE_TYPE

#define NODE_TYPE (   inode)    (nodes[6 * (inode) + 3])

◆ NODES

#define NODES (   inode,
 
)    (nodes[6 * (inode) + (i)])

◆ THRESH_IDLE

#define THRESH_IDLE   0

◆ THRESH_Y1

#define THRESH_Y1   1

◆ THRESH_Y2

#define THRESH_Y2   2

Function Documentation

◆ get_rule_extreme()

double get_rule_extreme ( int  mode)

Get the lower or upper bound

Returns
Lower of Upper Bound
Parameters
[in]mode<0 for lower bound; >0 for upper bound

◆ get_rule_mode()

int get_rule_mode ( void  )

Get the current Rule Mode

Returns
Returns the current mode (1 for Gaussian; 0 for Raw)

◆ set_rule_mode()

void set_rule_mode ( int  rule_mode)

Set the Rule Mode

Parameters
[in]rule_mode1 for Gaussian; 0 for absence of conversion
Remarks
The absence of conversion is used in order to evaluate the
real thresholds along the rule for representing the rule
by proportions rather than in gaussian scale