function res = robustmlp_getInstallationDir(whatToGet)
% Returns directory locations that depend on installation location.
% This needs to be changed, depending on where you put the MLP codes.


%% Local setup / **CHANGE THIS**
if isunix
    % Example for a Unix installation:
    ROBUSTMLP_PREFIX = '/files/nieminen/fc12stuff/work/gitrepos/robustmlp'
    ROBUSTMLP_TEMPDIR   = '/files/nieminen/work/tmp';
elseif ispc
    % Example for a Windows installation:
    ROBUSTMLP_PREFIX = 'u:\files\charragit\robustmlp'
    ROBUSTMLP_TEMPDIR    = 'c:\MyTemp\nieminen';
end


%% No need to touch the following under usual circumstances
% This is not dependent on system specifics:
ROBUSTMLP_EXDATADIR = fullfile(ROBUSTMLP_PREFIX,'externals','data');

if (strcmp(whatToGet, 'installation'))
  res = ROBUSTMLP_PREFIX;
elseif (strcmp(whatToGet, 'exampledata'))
  res = ROBUSTMLP_EXDATADIR;
elseif (strcmp(whatToGet, 'temp'))
  res = ROBUSTMLP_TEMPDIR;
else
  error(sprintf('Unrecognized parameter: `%s`', whatToGet));
end
