openModeller
Version 1.4.0
|
#include <Utilities.h>
Public Member Functions | |
GarpUtil () | |
Static Public Member Functions | |
static void | randomize (unsigned long iOrigSeedProvided=0) |
static bool | between (double x, double y, double z) |
static int | notBetween (double x, double y, double z) |
static bool | equalEps (double x, double y, double eps) |
static double | random () |
static int | randint (int low, int high) |
static int | isInArray (long array[], int n, int value) |
static int | membership (BYTE rval1, BYTE rval2, BYTE value) |
Definition at line 137 of file Utilities.h.
GarpUtil::GarpUtil | ( | ) | [inline] |
Definition at line 141 of file Utilities.h.
static bool GarpUtil::between | ( | double | x, |
double | y, | ||
double | z | ||
) | [inline, static] |
Definition at line 168 of file Utilities.h.
static bool GarpUtil::equalEps | ( | double | x, |
double | y, | ||
double | eps | ||
) | [inline, static] |
Definition at line 200 of file Utilities.h.
Referenced by RuleSet::discardRules().
static int GarpUtil::isInArray | ( | long | array[], |
int | n, | ||
int | value | ||
) | [inline, static] |
Definition at line 228 of file Utilities.h.
static int GarpUtil::membership | ( | BYTE | rval1, |
BYTE | rval2, | ||
BYTE | value | ||
) | [inline, static] |
Definition at line 246 of file Utilities.h.
Referenced by RangeRule::getStrength(), AtomicRule::getStrength(), and LogitRule::getStrength().
static int GarpUtil::notBetween | ( | double | x, |
double | y, | ||
double | z | ||
) | [inline, static] |
Definition at line 187 of file Utilities.h.
Referenced by RangeRule::applyToCell(), and NegatedRangeRule::applyToCell().
static int GarpUtil::randint | ( | int | low, |
int | high | ||
) | [inline, static] |
Definition at line 216 of file Utilities.h.
References random().
Referenced by GarpAlgorithm::crossover(), Rule::initialize(), RangeRule::initialize(), AtomicRule::initialize(), LogitRule::initialize(), GarpAlgorithm::join(), Rule::mutate(), LogitRule::mutate(), EnvCellSet::resample(), EnvCellSet::resampleInPlace(), GarpAlgorithm::select(), and Rule::testWithData().
static double GarpUtil::random | ( | ) | [inline, static] |
Definition at line 206 of file Utilities.h.
References MASK, PRIME, SCALE, and Seed.
Referenced by RangeRule::initialize(), randint(), and GarpAlgorithm::select().
static void GarpUtil::randomize | ( | unsigned long | iOrigSeedProvided = 0 | ) | [inline, static] |
Definition at line 144 of file Utilities.h.
References OrigSeed, and Seed.
Referenced by GarpAlgorithm::GarpAlgorithm().