plane_max_prop.C File Reference

#include <gtk/gtk.h>
#include "config.h"
#include "gxsm/plugin.h"

Go to the source code of this file.

Classes

struct  mode_out

Defines

#define GXSM_ONE_SRC_PLUGIN__DEF
#define F1   6
#define F2   12
#define F3   5
#define DFAC   2
#define WEIGHTFAC   3
#define EPS   1
#define fbound(a, b, c)
#define DATA   double
#define LONGDATA   double
#define INT   int
#define NRAND   97
#define RAND_MAX   32767
#define SAMPLE   10000
#define START   8

Functions

static void plane_max_prop_init (void)
static void plane_max_prop_about (void)
static void plane_max_prop_configure (void)
static void plane_max_prop_cleanup (void)
static gboolean plane_max_prop_run (Scan *Src, Scan *Dest)
GxsmPluginget_gxsm_plugin_info (void)
GxsmMathOneSrcPluginget_gxsm_math_one_src_plugin_info (void)
int random_number (int)
gboolean mode (DATA *d, int n, int stop, struct mode_out *rv)
gboolean deltamode (Scan *Src, int m, int n, int dm, int dn, struct mode_out *answer)

Variables

GxsmPlugin plane_max_prop_pi
GxsmMathOneSrcPlugin plane_max_prop_m1s_pi
static const char * about_text


Define Documentation

#define DATA   double
 

Definition at line 270 of file plane_max_prop.C.

Referenced by deltamode(), and mode().

#define DFAC   2
 

Definition at line 255 of file plane_max_prop.C.

#define EPS   1
 

Definition at line 257 of file plane_max_prop.C.

Referenced by mode().

#define F1   6
 

Definition at line 252 of file plane_max_prop.C.

#define F2   12
 

Definition at line 253 of file plane_max_prop.C.

#define F3   5
 

Definition at line 254 of file plane_max_prop.C.

#define fbound a,
b,
 ) 
 

Value:

{                                                           \
        double uttemp;                              \
                                                            \
        if ((a) < (uttemp = (b)) || (a) > (uttemp = (c)))   \
            (a) = uttemp;                                   \
    }

Definition at line 262 of file plane_max_prop.C.

Referenced by plane_max_prop_run().

#define GXSM_ONE_SRC_PLUGIN__DEF
 

Definition at line 108 of file plane_max_prop.C.

#define INT   int
 

Definition at line 272 of file plane_max_prop.C.

Referenced by mode().

#define LONGDATA   double
 

Definition at line 271 of file plane_max_prop.C.

Referenced by mode().

#define NRAND   97
 

Definition at line 278 of file plane_max_prop.C.

Referenced by random_number().

#define RAND_MAX   32767
 

Definition at line 281 of file plane_max_prop.C.

Referenced by Ground(), and random_number().

#define SAMPLE   10000
 

Definition at line 414 of file plane_max_prop.C.

Referenced by deltamode().

#define START   8
 

Definition at line 441 of file plane_max_prop.C.

Referenced by plane_max_prop_run().

#define WEIGHTFAC   3
 

Definition at line 256 of file plane_max_prop.C.


Function Documentation

gboolean deltamode Scan Src,
int  m,
int  n,
int  dm,
int  dn,
struct mode_out answer
 

Definition at line 416 of file plane_max_prop.C.

References DATA, Mem2d::GetDataPkt(), Scan::mem2d, random_number(), and SAMPLE.

Referenced by plane_max_prop_run().

GxsmMathOneSrcPlugin* get_gxsm_math_one_src_plugin_info void   ) 
 

Definition at line 205 of file plane_max_prop.C.

References plane_max_prop_m1s_pi.

GxsmPlugin* get_gxsm_plugin_info void   ) 
 

Definition at line 196 of file plane_max_prop.C.

References GxsmPlugin::description, N_, plane_max_prop_pi, and VERSION.

gboolean mode DATA *  d,
int  n,
int  stop,
struct mode_out rv
 

Definition at line 315 of file plane_max_prop.C.

References DATA, EPS, INT, and LONGDATA.

Referenced by Focus::Focus().

static void plane_max_prop_about void   )  [static]
 

Definition at line 222 of file plane_max_prop.C.

References about_text, GxsmPlugin::authors, N_, GxsmPlugin::name, plane_max_prop_pi, and VERSION.

static void plane_max_prop_cleanup void   )  [static]
 

Definition at line 242 of file plane_max_prop.C.

References DBG_L2, and PI_DEBUG.

static void plane_max_prop_configure void   )  [static]
 

Definition at line 235 of file plane_max_prop.C.

References GxsmPlugin::app, GnomeAppService::message(), and plane_max_prop_pi.

static void plane_max_prop_init void   )  [static]
 

Definition at line 216 of file plane_max_prop.C.

References DBG_L2, and PI_DEBUG.

static gboolean plane_max_prop_run Scan Src,
Scan Dest
[static]
 

Definition at line 446 of file plane_max_prop.C.

References mode_out::best, deltamode(), fbound, Mem2d::GetNx(), Mem2d::GetNy(), mode_out::high, mode_out::low, MATH_UNDEFINED, MAX, Scan::mem2d, MIN, and START.

int random_number int   ) 
 

Definition at line 284 of file plane_max_prop.C.

References FALSE, NRAND, RAND_MAX, and TRUE.

Referenced by deltamode().


Variable Documentation

const char* about_text [static]
 

Initial value:

 N_("Gxsm plane_max_prop Plugin\n\n"
                                   "Calculates a max propability plane and subtracts it.")

Definition at line 191 of file plane_max_prop.C.

GxsmMathOneSrcPlugin plane_max_prop_m1s_pi
 

Initial value:

Definition at line 185 of file plane_max_prop.C.

Referenced by get_gxsm_math_one_src_plugin_info().

GxsmPlugin plane_max_prop_pi
 

Definition at line 121 of file plane_max_prop.C.

Referenced by get_gxsm_plugin_info(), plane_max_prop_about(), and plane_max_prop_configure().


Generated on Sat Apr 1 09:04:48 2006 for GXSM by  doxygen 1.4.6