Skip to content

Commit

Permalink
Fixed biascorrecor typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JonKing93 committed Oct 24, 2019
1 parent e1afe61 commit b349d9b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion PSMs/@PSM/PSM.m
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
reviewUnitConversion( obj, H );

% Select a bias corrector
setBiasCorrector( type, Xt, Xs );
setBiasCorrector( obj, type, varargin );

end

Expand Down
6 changes: 3 additions & 3 deletions PSMs/@PSM/setBiasCorrector.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@

% Null corrector
if strcmpi( type, 'none' )
obj.biasCorrector = nullCorrector;
obj.biasCorrection = nullCorrector;

% Mean adjustment
elseif strcmpi( type, 'mean' )
obj.biasCorrector = meanCorrector( varargin{:} );
obj.biasCorrection = meanCorrector( varargin{:} );

% Renormalization
elseif strcmpi(type, 'renorm')
obj.biasCorrector = renormCorrector( varargin{:} );
obj.biasCorrection = renormCorrector( varargin{:} );

else
error('Unrecognized bias corrector.');
Expand Down
2 changes: 1 addition & 1 deletion PSMs/Bias Correctors/biasCorrector.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
meanT = mean(Xt, 2, nanflag);

stdS = std( Xs, 0, 2, nanflag );
stdT = std( Xs, 0, 2, nanflag );
stdT = std( Xt, 0, 2, nanflag );

% Get the renormalization constants
timesUnit= (stdT ./ stdS);
Expand Down
4 changes: 2 additions & 2 deletions PSMs/Bias Correctors/renormCorrector.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

% Constructor
methods
function obj = renormCorrector( Xt, Xs )
function obj = renormCorrector( Xt, Xs, nanflag )
% Creates a renormalization bias corrector
%
% obj = renormCorrector( Xt, Xs )
Expand Down Expand Up @@ -62,7 +62,7 @@

% Apply the correction
function[M] = biasCorrect( obj, M )
M = M .* obj.timeUnit;
M = M .* obj.timesUnit;
M =M + obj.addUnit;
end

Expand Down

0 comments on commit b349d9b

Please sign in to comment.