SAGA API  v9.6
mat_formula.cpp File Reference
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <errno.h>
#include <ctype.h>
#include "mat_tools.h"
#include "grid.h"

Go to the source code of this file.

Macros

#define MAX_PARMS   3
 
#define MAX_CTABLE   255
 
#define STD_FNC_NUM   19
 
#define GET_VALUE_BUFSIZE   500
 
#define EPSILON   1e-9
 

Functions

static double f_atan2 (double x, double val)
 
static double f_pow (double x, double val)
 
static double f_gt (double x, double val)
 
static double f_lt (double x, double val)
 
static double f_eq (double x, double val)
 
static double f_min (double a, double b)
 
static double f_max (double a, double b)
 
static double f_pi (void)
 
static double f_int (double x)
 
static double f_sqr (double x)
 
static double f_fmod (double x, double val)
 
static double f_rand_u (double min, double max)
 
static double f_rand_g (double mean, double stdv)
 
static double f_and (double x, double y)
 
static double f_or (double x, double y)
 
static double f_ifelse (double condition, double x, double y)
 

Variables

static CSG_Formula::TSG_Function gSG_Functions [MAX_CTABLE]
 

Macro Definition Documentation

◆ EPSILON

#define EPSILON   1e-9

Definition at line 92 of file mat_formula.cpp.

◆ GET_VALUE_BUFSIZE

#define GET_VALUE_BUFSIZE   500

Definition at line 89 of file mat_formula.cpp.

◆ MAX_CTABLE

#define MAX_CTABLE   255

Definition at line 84 of file mat_formula.cpp.

◆ MAX_PARMS

#define MAX_PARMS   3

Definition at line 83 of file mat_formula.cpp.

◆ STD_FNC_NUM

#define STD_FNC_NUM   19

Definition at line 86 of file mat_formula.cpp.

Function Documentation

◆ f_and()

static double f_and ( double  x,
double  y 
)
static

Definition at line 180 of file mat_formula.cpp.

◆ f_atan2()

static double f_atan2 ( double  x,
double  val 
)
static

Definition at line 102 of file mat_formula.cpp.

◆ f_eq()

static double f_eq ( double  x,
double  val 
)
static

Definition at line 126 of file mat_formula.cpp.

References EPSILON.

◆ f_fmod()

static double f_fmod ( double  x,
double  val 
)
static

Definition at line 162 of file mat_formula.cpp.

◆ f_gt()

static double f_gt ( double  x,
double  val 
)
static

Definition at line 114 of file mat_formula.cpp.

◆ f_ifelse()

static double f_ifelse ( double  condition,
double  x,
double  y 
)
static

Definition at line 192 of file mat_formula.cpp.

◆ f_int()

static double f_int ( double  x)
static

Definition at line 150 of file mat_formula.cpp.

◆ f_lt()

static double f_lt ( double  x,
double  val 
)
static

Definition at line 120 of file mat_formula.cpp.

◆ f_max()

static double f_max ( double  a,
double  b 
)
static

Definition at line 138 of file mat_formula.cpp.

◆ f_min()

static double f_min ( double  a,
double  b 
)
static

Definition at line 132 of file mat_formula.cpp.

◆ f_or()

static double f_or ( double  x,
double  y 
)
static

Definition at line 186 of file mat_formula.cpp.

◆ f_pi()

static double f_pi ( void  )
static

Definition at line 144 of file mat_formula.cpp.

References M_PI.

◆ f_pow()

static double f_pow ( double  x,
double  val 
)
static

Definition at line 108 of file mat_formula.cpp.

◆ f_rand_g()

static double f_rand_g ( double  mean,
double  stdv 
)
static

Definition at line 174 of file mat_formula.cpp.

References CSG_Random::Get_Gaussian().

◆ f_rand_u()

static double f_rand_u ( double  min,
double  max 
)
static

Definition at line 168 of file mat_formula.cpp.

References CSG_Random::Get_Uniform().

◆ f_sqr()

static double f_sqr ( double  x)
static

Definition at line 156 of file mat_formula.cpp.

Variable Documentation

◆ gSG_Functions

CSG_Formula::TSG_Function gSG_Functions[MAX_CTABLE]
static

Definition at line 206 of file mat_formula.cpp.

Referenced by CSG_Formula::CSG_Formula().