Esempio n. 1
0
int main(int argc, char *argv[])
{

 testSequence();
 testUnivariateStats();
 testBivariateStats();
 testUtility();
 testVectorAlgebra(); 
 testMatrixDeterminant();
 testMatrixInverse();
 testLUFactorisation();
 testLUSolver();
 testGaussianElimination();
 testInterpolation();
 testIntegration();
 testRoot();
 testTimeStep();
 testRSignificanceTest();
 testChiSquared();
 testMultipleRegression(); 
 test_golden_fit();
 testSimplex(); 
 testSimplex2(); 
 testSimplex3();
 test_simplex_fit(); 


 return (EXIT_SUCCESS);

} 
Esempio n. 2
0
void LinearTermTests::runTests(int &numTestsRun, int &numTestsPassed)
{
  setup();
  if (testRieszInversionAsProjection())
  {
    numTestsPassed++;
  }
  numTestsRun++;
  teardown();

  setup();
  if (testBoundaryPlusVolumeTerms())
  {
    numTestsPassed++;
  }
  numTestsRun++;
  teardown();

  setup();
  if (testIntegrateMixedBasis())
  {
    numTestsPassed++;
  }
  numTestsRun++;
  teardown();

  setup();
  if (testMixedTermConsistency())
  {
    numTestsPassed++;
  }
  numTestsRun++;
  teardown();

  setup();
  if (testRieszInversion())
  {
    numTestsPassed++;
  }
  numTestsRun++;
  teardown();

  setup();
  if (testSums())
  {
    numTestsPassed++;
  }
  numTestsRun++;
  teardown();

  setup();
  if (testIntegration())
  {
    numTestsPassed++;
  }
  numTestsRun++;
  teardown();

  setup();
  if (testLinearTermEvaluation())
  {
    numTestsPassed++;
  }
  numTestsRun++;
  teardown();

}