libtpcmodel
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines
Defines | Functions | Variables
libtpcmodel.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <string.h>
#include <ctype.h>
#include <unistd.h>
#include "libtpcmodelv.h"
#include "include/median.h"
#include "include/lms.h"
#include "include/lts.h"
#include "include/mestim.h"
#include "include/runs_test.h"
#include "include/normaldistr.h"
#include "include/expx2.h"
#include "include/polevl.h"
#include "include/integr.h"
#include "include/tgo.h"
#include "include/powell.h"
Include dependency graph for libtpcmodel.c:

Go to the source code of this file.

Defines

#define LIB_NAME   "libtpcmodel"
#define ALLTESTS   0
#define SWAP   1
#define ROBUSTEST   2
#define RUNSTEST   3
#define NORMALDISTR   4
#define POLEVL   5
#define EXPX2   6
#define INTEG   7
#define TGORANDOMPARAMETERSSTTEST   8
#define POWELLTEST   9
#define MAXVAL   100000;

Functions

int test_re ()
int test_runst ()
int test_normaldistr ()
int test_polevl ()
int test_expx2 ()
int test_integr ()
int test_tgoRandomParametersST ()
int test_powell ()
void print_usage ()
int main (int argc, char *argv[])
double optfunc_dejong2 (int n, double *x, void *func_data)

Variables

int VERBOSE = 0

Define Documentation

#define ALLTESTS   0

Serial numbers for function names.

Definition at line 18 of file libtpcmodel.c.

Referenced by main().

#define EXPX2   6

Definition at line 24 of file libtpcmodel.c.

Referenced by main().

#define INTEG   7

Definition at line 25 of file libtpcmodel.c.

Referenced by main().

#define LIB_NAME   "libtpcmodel"

Library name.

Definition at line 15 of file libtpcmodel.c.

Referenced by print_usage().

#define MAXVAL   100000;

Definition at line 52 of file libtpcmodel.c.

#define NORMALDISTR   4

Definition at line 22 of file libtpcmodel.c.

Referenced by main().

#define POLEVL   5

Definition at line 23 of file libtpcmodel.c.

Referenced by main().

#define POWELLTEST   9

Definition at line 27 of file libtpcmodel.c.

Referenced by main().

#define ROBUSTEST   2

Definition at line 20 of file libtpcmodel.c.

Referenced by main().

#define RUNSTEST   3

Definition at line 21 of file libtpcmodel.c.

Referenced by main().

#define SWAP   1

Definition at line 19 of file libtpcmodel.c.

#define TGORANDOMPARAMETERSSTTEST   8

Definition at line 26 of file libtpcmodel.c.

Referenced by main().


Function Documentation

int main ( int  argc,
char *  argv[] 
)
double optfunc_dejong2 ( int  n,
double *  x,
void *  func_data 
)

De Jong's second function or Rosenbrock's valley or Banana function. One minimum f(xi)=0. With n=2 minimum is at (1,1) and with n=3 at(1,1,1). With 4<=n<=7 there is one global minimum at (1,1,...,1) and local minimum somewhere near (-1,1,...1). For larger n the method breaks down.

Definition at line 925 of file libtpcmodel.c.

Referenced by test_powell().

void print_usage ( )

Function for printing the usage information of the libtpcmodel test program.

Definition at line 1134 of file libtpcmodel.c.

References LIB_NAME, and libtpcmodel_print_build().

Referenced by main().

Here is the call graph for this function:

int test_expx2 ( )

Definition at line 631 of file libtpcmodel.c.

References expx2(), and VERBOSE.

Referenced by main().

Here is the call graph for this function:

int test_integr ( )

Definition at line 666 of file libtpcmodel.c.

References fintegrate(), finterpolate(), fpetintegrate(), integrate(), interpolate(), petintegrate(), and VERBOSE.

Referenced by main().

Here is the call graph for this function:

Definition at line 538 of file libtpcmodel.c.

References normal_pvalue_1(), normal_pvalue_2(), and VERBOSE.

Referenced by main().

Here is the call graph for this function:

int test_polevl ( )

Definition at line 577 of file libtpcmodel.c.

References polevl(), and VERBOSE.

Referenced by main().

Here is the call graph for this function:

int test_powell ( )

Definition at line 948 of file libtpcmodel.c.

References optfunc_dejong2(), powell(), and VERBOSE.

Referenced by main().

Here is the call graph for this function:

int test_re ( )

Definition at line 191 of file libtpcmodel.c.

References dmedian(), least_median_of_squares(), least_trimmed_square(), mEstim(), and VERBOSE.

Referenced by main().

Here is the call graph for this function:

int test_runst ( )

Function for testing runs_test

Returns:

Definition at line 391 of file libtpcmodel.c.

References residuals(), runs_test(), and VERBOSE.

Referenced by main().

Here is the call graph for this function:

Definition at line 857 of file libtpcmodel.c.

References dmean(), dmedian(), tgoRandomParametersST(), and VERBOSE.

Referenced by main().

Here is the call graph for this function:


Variable Documentation

int VERBOSE = 0