openModeller  Version 1.5.0
rules_base.cpp File Reference
#include <openmodeller/Random.hh>
#include <math.h>
#include <string.h>
#include <openmodeller/Log.hh>
#include <openmodeller/Sample.hh>
#include <openmodeller/Occurrence.hh>
#include <openmodeller/Exceptions.hh>
#include "rules_base.hh"
Include dependency graph for rules_base.cpp:

Go to the source code of this file.

Macros

#define MIN_SIG_NO   10
 

Functions

int min (int v1, int v2)
 
bool equalEps (double v1, double v2)
 
bool between (double value, double min, double max)
 
int membership (double value1, double value2, double value)
 

Macro Definition Documentation

#define MIN_SIG_NO   10

Declaration of GarpRule used by GARP

Author
Ricardo Scachetti Pereira (rpere.nosp@m.ira@.nosp@m.ku.ed.nosp@m.u)
Date
2004-04-02
Id:
rules_base.cpp 5046 2009-06-10 21:40:25Z rdg

LICENSE INFORMATION

Copyright(c), The Center for Research, University of Kansas, 2385 Irving Hill Road, Lawrence, KS 66044-4755, USA. Copyright(c), David R.B. Stockwell of Symbiotik Pty. Ltd. Copyright(c), CRIA - Centro de Referencia em Informacao Ambiental

http://www.nhm.ku.edu

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details:

http://www.gnu.org/copyleft/gpl.html

This is an implementation of the GARP algorithm first developed by David Stockwell

Definition at line 47 of file rules_base.cpp.

Referenced by GarpRule::evaluate().

Function Documentation

bool between ( double  value,
double  min,
double  max 
)

Definition at line 67 of file rules_base.cpp.

Referenced by NegatedRangeRule::applies(), and RangeRule::applies().

bool equalEps ( double  v1,
double  v2 
)
int membership ( double  value1,
double  value2,
double  value 
)

Definition at line 73 of file rules_base.cpp.

References equalEps().

Referenced by RangeRule::getStrength().

Here is the call graph for this function: