Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
dot-tracking-package/check_parameter_files.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
24 lines (21 sloc)
740 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [io, id, sizing, tracking] = check_parameter_files(io, id, sizing, tracking) | |
% function to ensure that the parameter structure has all the required | |
% fields | |
%% check i/o parameters | |
if ~isfield(io, 'display_intermediate_progress') | |
io.display_intermediate_progress = false; | |
end | |
%% check id parameters | |
if ~isfield(id, 'minimum_subtraction') | |
id.minimum_subtraction = false; | |
id.minimum_intensity_level = 0; | |
end | |
%% check tracking parameters | |
if ~isfield(tracking, 'validation') | |
tracking.perform_validation = false; | |
tracking.validation = struct; | |
end | |
if ~isfield(tracking.validation, 'uod_epsilon') | |
tracking.validation.uod_epsilon = 0.1; | |
end | |
end |