1.2.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

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

Function Documentation

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
int get_rule_mode ( void  )

Get the current Rule Mode

Returns
Returns the current mode (1 for Gaussian; 0 for Raw)
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