Skip to main content

scaleToOriginal.m


% This function is part of the NMSM Pipeline, see file for full license.
%
% This function scales the values back to original based on the assigned
% bounds.
%
% (Array of number, number, number) -> (Array of number)
% Scales vector back to original


function value = scaleToOriginal(value, maximum, minimum)

value = value .* (maximum - minimum) + (maximum + minimum) / 2;
end