rbmatlab  1.13.10
 All Classes Namespaces Files Functions Variables Groups Pages
Functions
test_gradient_approx.m File Reference

performing a test of the gradient_approx routine More...

Go to the source code of this file.

Functions

function OK = test_gradient_approx ()
 performing a test of the gradient_approx routine
 
function ret = testgradientapprox>grad_test (params, model_data, U, NU_ind, edge)
 
function OK = testgradientapprox>check_equal (correct, testval, edge)
 
function OK = testgradientapprox>check_convergence (params, f, fx, fy, edge)
 

Detailed Description

performing a test of the gradient_approx routine

Definition in file test_gradient_approx.m.

Function Documentation

function OK = test_gradient_approx ( )

performing a test of the gradient_approx routine

It generates a simple 2x2 grid on which the gradients over each edge can be pre-calculated manually (c.f. grad_correct vector), and compares it to the output of gradient_approx()

Return values
OK1, if test is OK, 0 otherwise

Definition at line 17 of file test_gradient_approx.m.