Helpful Stan Functions
Unit test functions

Functions

void expect_equal_real (real expected, real actual, real tol)
 
void expect_equal_vector (vector expected, vector actual, real tol)
 

Detailed Description

Mathematical functions that have established names or notations specifically in the domains of probability and statistics.

/** Expect equal real

Copyright Rok Češnovar, 2021

Parameters
expectedReal number
actualReal number
tolReal number

Function Documentation

◆ expect_equal_real()

void expect_equal_real ( real  expected,
real  actual,
real  tol 
)

◆ expect_equal_vector()

void expect_equal_vector ( vector  expected,
vector  actual,
real  tol 
)

Expect equal vector

Copyright Rok Češnovar, 2021

Parameters
expectedVector
actualVector
tolReal number