view toolboxes/alps/ALPS/configuration.m @ 245:96d17e5dc5d3

Replaced the call to SMALL_ImgDenoise_DL_test_KSVDvsSPAMS with SMALL_ImgDenoise_DL_test_KSVDvsRLSDLAvsTwoStepMOD in Example 2 of SMALLBoxSetup.m.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 31 Oct 2012 11:53:07 +0000
parents 0de08f68256b
children
line wrap: on
line source
function [solveNewtonb, gradientDescentx, solveNewtonx] = configuration(mode)
% Function that maps 'mode' value into (SolveNewtonb, GradientDescentx, SolveNewtonx) configuration

if (mode == 0)
    solveNewtonb = 0;
    gradientDescentx = 0;
    solveNewtonx = 0;
elseif (mode == 1)
    solveNewtonb = 0;
    gradientDescentx = 0;
    solveNewtonx = 1;
elseif (mode == 2)
    solveNewtonb = 0;
    gradientDescentx = 1;
    solveNewtonx = 0;
elseif (mode == 4)
    solveNewtonb = 1;
    gradientDescentx = 0;
    solveNewtonx = 0;
elseif (mode == 5)
    solveNewtonb = 1;
    gradientDescentx = 0;
    solveNewtonx = 1;
elseif (mode == 6)
    solveNewtonb = 1;
    gradientDescentx = 1;
    solveNewtonx = 0;
end;