ADDM.cpp
Loading...
Searching...
No Matches
addm_test.cpp File Reference
#include <addm/cpp_toolbox.h>
#include <catch2/catch.hpp>
Include dependency graph for addm_test.cpp:

Macros

#define CATCH_CONFIG_MAIN
 
#define CHECK_MESSAGE(cond, msg)   do { INFO(msg); CHECK(cond); } while((void)0, 0)
 

Functions

bool within_abs (float f1, float f2, float error)
 
 TEST_CASE ("aDDM::simulateTrial gives expected Results")
 Check that input seeds yield consistent results for aDDM::simulateTrial and the function runs without error.
 
 TEST_CASE ("aDDM::getTrialLikelihood gives expected results")
 Check that aDDM::getTrialLikelihood yields consistent results across runs.
 
 TEST_CASE ("aDDM::fitModelMLE gives expected results")
 Confirm that aDDM::fitModelMLE predicts exact parameters for small grid sizes.
 

Variables

const std::string EXP_DATA = "data/expdata.csv"
 
const std::string FIX_DATA = "data/fixations.csv"
 
const float ERROR_BOUND = 1.0E-6
 

Macro Definition Documentation

◆ CATCH_CONFIG_MAIN

#define CATCH_CONFIG_MAIN

◆ CHECK_MESSAGE

#define CHECK_MESSAGE ( cond,
msg )   do { INFO(msg); CHECK(cond); } while((void)0, 0)

Function Documentation

◆ TEST_CASE() [1/3]

TEST_CASE ( "aDDM::fitModelMLE gives expected results" )

Confirm that aDDM::fitModelMLE predicts exact parameters for small grid sizes.

◆ TEST_CASE() [2/3]

TEST_CASE ( "aDDM::getTrialLikelihood gives expected results" )

Check that aDDM::getTrialLikelihood yields consistent results across runs.

◆ TEST_CASE() [3/3]

TEST_CASE ( "aDDM::simulateTrial gives expected Results" )

Check that input seeds yield consistent results for aDDM::simulateTrial and the function runs without error.

◆ within_abs()

bool within_abs ( float f1,
float f2,
float error )
inline

Variable Documentation

◆ ERROR_BOUND

const float ERROR_BOUND = 1.0E-6

◆ EXP_DATA

const std::string EXP_DATA = "data/expdata.csv"

◆ FIX_DATA

const std::string FIX_DATA = "data/fixations.csv"