[ff1121]: src / modules / bugs / functions / testbugsfun.h Maximize Restore History

Download this file

testbugsfun.h    125 lines (113 with data), 3.3 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#ifndef BUGS_FUN_TEST_H
#define BUGS_FUN_TEST_H
namespace jags {
class ScalarFunction;
class VectorFunction;
class ArrayFunction;
class LinkFunction;
}
#include <cppunit/extensions/HelperMacros.h>
#include <testlib.h>
namespace jags {
class ScalarFunction;
}
class BugsFunTest : public CppUnit::TestFixture, public JAGSFixture
{
CPPUNIT_TEST_SUITE( BugsFunTest );
CPPUNIT_TEST( npar );
CPPUNIT_TEST( name );
CPPUNIT_TEST( alias );
CPPUNIT_TEST( trig );
CPPUNIT_TEST( hyper );
CPPUNIT_TEST( link );
CPPUNIT_TEST( summary );
CPPUNIT_TEST( math );
CPPUNIT_TEST( lossy );
CPPUNIT_TEST( slp );
CPPUNIT_TEST( linear );
CPPUNIT_TEST( scale );
CPPUNIT_TEST( sort );
CPPUNIT_TEST( matrix );
CPPUNIT_TEST( inprod );
CPPUNIT_TEST( ifelse );
CPPUNIT_TEST( interplin );
CPPUNIT_TEST( discrete );
CPPUNIT_TEST_SUITE_END();
jags::ScalarFunction *_abs;
jags::ScalarFunction *_arccos;
jags::ScalarFunction *_arccosh;
jags::ScalarFunction *_arcsin;
jags::ScalarFunction *_arcsinh;
jags::ScalarFunction *_arctan;
jags::ScalarFunction *_arctanh;
jags::ScalarFunction *_cloglog;
jags::ScalarFunction *_cos;
jags::ScalarFunction *_cosh;
jags::VectorFunction *_dinterval;
jags::ScalarFunction *_dround;
jags::ArrayFunction *_dsum;
jags::LinkFunction *_exp;
jags::LinkFunction *_icloglog;
jags::ScalarFunction *_ifelse;
jags::LinkFunction *_ilogit;
jags::VectorFunction *_inprod;
jags::VectorFunction *_interplin;
jags::ArrayFunction *_inverse;
jags::ArrayFunction *_logdet;
jags::ScalarFunction *_logfact;
jags::ScalarFunction *_loggam;
jags::ScalarFunction *_log;
jags::ScalarFunction *_logit;
jags::ArrayFunction *_matmult;
jags::VectorFunction *_max;
jags::VectorFunction *_mean;
jags::VectorFunction *_min;
jags::VectorFunction *_order;
jags::LinkFunction *_phi;
jags::ScalarFunction *_probit;
jags::VectorFunction *_prod;
jags::VectorFunction *_rank;
jags::ScalarFunction *_round;
jags::VectorFunction *_sd;
jags::ScalarFunction *_sin;
jags::ScalarFunction *_sinh;
jags::VectorFunction *_sort;
jags::ScalarFunction *_sqrt;
jags::ScalarFunction *_step;
jags::VectorFunction *_sum;
jags::ScalarFunction *_tan;
jags::ScalarFunction *_tanh;
jags::ArrayFunction *_transpose;
jags::ScalarFunction *_trunc;
jags::ScalarFunction *_yytrunc;
void link(jags::ScalarFunction const *f, jags::LinkFunction const *link,
double lower, double upper, int N);
void summary(double const *v, unsigned int N);
void summary(double const *v1, unsigned int N1,
double const *v2, unsigned int N2);
void trig(double v);
void hyper(double v);
public:
void setUp();
void tearDown();
void npar();
void name();
void alias();
void link();
void summary();
void trig();
void hyper();
void math();
void lossy();
void slp();
void linear();
void scale();
void sort();
void power();
void matrix();
void inprod();
void ifelse();
void discrete();
void interplin();
};
#endif // BUGS_FUN_TEST_H