Skip to content

Commit

Permalink
Fixes typos
Browse files Browse the repository at this point in the history
  • Loading branch information
DrPaulSharp committed Nov 30, 2023
1 parent d68490e commit c63a777
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions minimisers/generalUtils/bayesStats/refPrctileConfInts.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
problemDef = unpackParams(problemDef,controlsStruct);

% Calc the reflectivities....
[calcProblem,calcontrastResolutionsult] = reflectivityCalculation(problemDef,problemDefCells,controlsStruct);
[calcProblem,calcResult] = reflectivityCalculation(problemDef,problemDefCells,controlsStruct);

% 'result' is currently a cell array. Convert this to a struct because it's
% easier to work with fieldnames...
calcontrastResolutionsult = parseResultToStruct(calcProblem,calcontrastResolutionsult);
calcResult = parseResultToStruct(calcProblem,calcResult);

thisRef = calcontrastResolutionsult.reflectivity;
thisSld = calcontrastResolutionsult.sldProfiles;
thisRef = calcResult.reflectivity;
thisSld = calcResult.sldProfiles;

% so each is a {n x 1} cell array, because of n contrasts.
% Prepare some arrays to hold the SLD's and Refs for all the chain, keeping only the Y vales.
Expand Down Expand Up @@ -95,15 +95,15 @@
problemDef = unpackParams(problemDef,controlsStruct);

% Calc the reflectivities....
[calcProblem,calcontrastResolutionsult] = reflectivityCalculation(problemDef,problemDefCells,controlsStruct);
[calcProblem,calcResult] = reflectivityCalculation(problemDef,problemDefCells,controlsStruct);

% 'result' is currently a cell array. Convert this to a struct because it's
% easier to work with fieldnames...
calcontrastResolutionsult = parseResultToStruct(calcProblem,calcontrastResolutionsult);
calcResult = parseResultToStruct(calcProblem,calcResult);

thisRef = calcontrastResolutionsult.reflectivity;
thisSld = calcontrastResolutionsult.sldProfiles;
sampleChi(i) = calcontrastResolutionsult.calculationResults.sum_chi;
thisRef = calcResult.reflectivity;
thisSld = calcResult.sldProfiles;
sampleChi(i) = calcResult.calculationResults.sum_chi;

for n = 1:numberOfContrasts

Expand Down
4 changes: 2 additions & 2 deletions targetFunctions/common/backSort.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
%thisScale = contrastScalefactors(i);
outScalefactor = scalefactor(contrastScalefactors);

%thisBulkInir = contrastBulkIns(i);
%thisBulkIn = contrastBulkIns(i);
outBulkIn = bulkIn(contrastBulkIns);

%thisBulkOutub = contrastBulkOuts(i);
%thisBulkOut = contrastBulkOuts(i);
outBulkOut = bulkOut(contrastBulkOuts);

%thisResol = contrastResolutions(i);
Expand Down

0 comments on commit c63a777

Please sign in to comment.