Skip to content

Commit 4447152

Browse files
committed
Removes "problemCells" from the code
1 parent 5ab5ee7 commit 4447152

File tree

66 files changed

+257
-385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+257
-385
lines changed

3rdParty/mcmcstat/%runDram.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function [problemStruct,problem,result,bayesResults] = runDram(problemStruct,problemCells,problemLimits,priors,controls)
1+
function [problemStruct,problem,result,bayesResults] = runDram(problemStruct,problemLimits,priors,controls)
22

33
checks = controls.checks;
44
[problemStruct,fitNames] = packParams(problemStruct,problemLimits,checks);
@@ -49,7 +49,7 @@
4949
burnin = controls.burnin;
5050
adaptint = 100;%controls.adaptint;
5151

52-
problem = {problemStruct ; controls ; problemLimits ; problemCells};
52+
problem = {problemStruct ; controls ; problemLimits};
5353

5454
output = runBayes(loop,nsimu,burnin,adaptint,params,problem);
5555

@@ -63,7 +63,7 @@
6363

6464
problemStruct.fitParams = output.bestParams;
6565
problemStruct = unpackParams(problemStruct,checks);
66-
result = reflectivityCalculation(problemStruct,problemCells,problemLimits,controls);
66+
result = reflectivityCalculation(problemStruct,problemLimits,controls);
6767

6868
% Pre-processor directives for Matlab Coder.
6969
coder.varsize('problem.ssubs',[Inf 1],[1 0]);

3rdParty/mcmcstat/refModel.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,10 @@
3333
problemStruct = problem{1};
3434
controls = problem{2};
3535
problemLimits = problem{3};
36-
problemCells = problem{4};
3736

3837
problemStruct.fitParams = pars;
3938
problemStruct = unpackParams(problemStruct,controls.checks);
40-
result = reflectivityCalculation(problemStruct,problemCells,problemLimits,controls);
39+
result = reflectivityCalculation(problemStruct,problemLimits,controls);
4140

4241
ySim = result.reflectivity{contrast};
4342

3rdParty/mcmcstat/refModel_scaled.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,14 @@
3636
problemStruct = problem{1};
3737
controls = problem{2};
3838
problemLimits = problem{3};
39-
problemCells = problem{4};
4039

4140
pars = theta;
4241
constr = problemStruct.fitLimits;
4342
pars = unscalePars(pars,constr);
4443

4544
problemStruct.fitParams = pars;
4645
problemStruct = unpackParams(problemStruct,controls.checks);
47-
result = reflectivityCalculation(problemStruct,problemCells,problemLimits,controls);
46+
result = reflectivityCalculation(problemStruct,problemLimits,controls);
4847

4948
ySim = result.reflectivity{contrast};
5049

3rdParty/mcmcstat/reflectivity_fitModel.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99
problemStruct = problem{1};
1010
controls = problem{2};
1111
problemLimits = problem{3};
12-
problemCells = problem{4};
1312

1413

1514
problemStruct.fitParams = pars;
1615
problemStruct = unpackParams(problemStruct,controls.checks);
17-
result = reflectivityCalculation(problemStruct,problemCells,problemLimits,controls);
16+
result = reflectivityCalculation(problemStruct,problemLimits,controls);
1817

1918
ss = result.calculationResults.sumChi;
2019

3rdParty/mcmcstat/reflectivity_fitModel_scaled.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
problemStruct = problem{1};
88
controls = problem{2};
99
problemLimits = problem{3};
10-
problemCells = problem{4};
1110

1211
pars = theta; % Current parameter values from mcmcstat
1312
constr = problemStruct.fitLimits;
@@ -16,7 +15,7 @@
1615
problemStruct.fitParams = pars;
1716
problemStruct = unpackParams(problemStruct,controls.checks);
1817

19-
result = reflectivityCalculation(problemStruct,problemCells,problemLimits,controls);
18+
result = reflectivityCalculation(problemStruct,problemLimits,controls);
2019

2120
ss = result.calculationResults.sumChi;
2221

3rdParty/mcmcstat/runBayes.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
problemStruct = problem{1};
44
controls = problem{2};
55
problemLimits = problem{3};
6-
problemCells = problem{4};
76

87
display = controls.display;
98

@@ -91,7 +90,7 @@
9190
%
9291
% problemStruct.fitParams = output.bestParams;
9392
% problemStruct = unpackParams(problemStruct,controls.checks);
94-
% result = reflectivityCalculation(problemStruct,problemCells,problemLimits,controls);
93+
% result = reflectivityCalculation(problemStruct,problemLimits,controls);
9594
%
9695
% output.bestFits = result.reflectivity;
9796
% output.shiftedData = problemStruct.data;

3rdParty/mcmcstat/runDram.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function [problemStruct,outProblem,result,bayesResults] = runDram(problemStruct,problemCells,problemLimits,controls,allPriors)
1+
function [problemStruct,outProblem,result,bayesResults] = runDram(problemStruct,problemLimits,controls,allPriors)
22

33
%#codegen
44

@@ -151,7 +151,7 @@
151151

152152
output = runBayes(loop,nsimu,burnin,adaptint,params,problem,controls);
153153

154-
[problemStruct,result,bayesResults] = processBayes(output,problemStruct,problemCells,problemLimits,controls);
154+
[problemStruct,result,bayesResults] = processBayes(output,problemStruct,problemLimits,controls);
155155

156156
% problemStruct.fitParams = bayesResults.bestParamsMean;
157157

@@ -170,15 +170,15 @@
170170
% % Calulate Max best fit curves
171171
% problemStruct.fitParams = bestParamsMax;
172172
% problemStruct = unpackParams(problemStruct,controls.checks);
173-
% result = reflectivityCalculation(problemStruct,problemCells,problemLimits,controls);
173+
% result = reflectivityCalculation(problemStruct,problemLimits,controls);
174174
% bestFitMax_Ref = result.reflectivity;
175175
% bestFitMax_Sld = result.sldProfiles;
176176
% bestFitMax_chi = result.calculationResultss.sumChi;
177177
%
178178
% % Calculate 'mean' best fit curves
179179
% problemStruct.fitParams = bestParamsMean;
180180
% problemStruct = unpackParams(problemStruct,controls.checks);
181-
% result = reflectivityCalculation(problemStruct,problemCells,problemLimits,controls);
181+
% result = reflectivityCalculation(problemStruct,problemLimits,controls);
182182
% bestFitMean_Ref = result.reflectivity;
183183
% bestFitMean_Sld = result.sldProfiles;
184184
% bestFitMean_chi = result.calculationResultss.sumChi;

3rdParty/mcmcstat/sldModel.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@
2727
problemStruct = problem{1};
2828
controls = problem{2};
2929
problemLimits = problem{3};
30-
problemCells = problem{4};
3130
controls.calcSldDuringFit = true;
3231

3332
problemStruct.fitParams = pars;
3433
problemStruct = unpackParams(problemStruct,controls.checks);
35-
result = reflectivityCalculation(problemStruct,problemCells,problemLimits,controls);
34+
result = reflectivityCalculation(problemStruct,problemLimits,controls);
3635

3736
sld = result.sldProfiles{contrast};
3837

3rdParty/paramonte/pmLogFunction.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
properties
44

55
problemStruct;
6-
problemCells;
76
problemLimits;
87
priors;
98
controls;
@@ -25,7 +24,7 @@
2524

2625
problem = unpackParams(problem,obj.controls.checks);
2726

28-
result = reflectivityCalculation_mex(problem,obj.problemCells,obj.problemLimits,obj.controls);
27+
result = reflectivityCalculation_mex(problem,obj.problemLimits,obj.controls);
2928
chi = result.calculationResults.sumChi;
3029
logFuncVal = -chi/2;
3130

3rdParty/paramonte/processParamonteRuns.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
%
66
% controls = controlsClass();
77

8-
[problemStruct,problemCells,problemLimits,~,controls] = parseClassToStructs(problem,controls);
8+
[problemStruct,problemLimits,~,controls] = parseClassToStructs(problem,controls);
99

1010
[problemStruct,fitNames] = packParams(problemStruct,problemLimits,controls.checks);
1111

@@ -41,7 +41,7 @@
4141
bayesOutputs.data = problemStruct.data;
4242
bayesOutputs.results.mean = mean(unscaledChain);
4343

44-
[problemStruct,result,bayesResults] = processBayes(bayesOutputs,problemStruct,problemCells,problemLimits,controls);
44+
[problemStruct,result,bayesResults] = processBayes(bayesOutputs,problemStruct,problemLimits,controls);
4545
bayesResults.chain = unscaledChain;
4646

4747
result = mergeStructs(result,bayesResults);

0 commit comments

Comments
 (0)