@@ -67,16 +67,13 @@ KrigingAlgorithm::KrigingAlgorithm(const Sample & inputSample,
67
67
, outputSample_(outputSample)
68
68
, normalize_(normalize)
69
69
, covarianceModel_()
70
- , glmAlgo_()
70
+ , glmAlgo_(inputSample, outputSample, covarianceModel, basis, normalize, true )
71
71
, gamma_(0 )
72
72
, rho_(0 )
73
73
, result_()
74
74
, covarianceCholeskyFactor_()
75
75
, covarianceCholeskyFactorHMatrix_()
76
76
{
77
- // Here we must force the GLMAlgo to keep the Cholesky factor as it is mandatory
78
- // for the interpolation part
79
- glmAlgo_ = GeneralLinearModelAlgorithm (inputSample, outputSample, covarianceModel, basis, normalize, true );
80
77
// Force the GLM algo to use the exact same linear algebra as the Kriging algorithm
81
78
if (ResourceMap::Get (" KrigingAlgorithm-LinearAlgebra" ) == " HMAT" ) glmAlgo_.setMethod (1 );
82
79
else glmAlgo_.setMethod (0 );
@@ -94,16 +91,13 @@ KrigingAlgorithm::KrigingAlgorithm(const Sample & inputSample,
94
91
, outputSample_(outputSample)
95
92
, normalize_(normalize)
96
93
, covarianceModel_(covarianceModel)
97
- , glmAlgo_()
94
+ , glmAlgo_(inputSample, outputSample, covarianceModel, basisCollection, normalize, true )
98
95
, gamma_(0 )
99
96
, rho_(0 )
100
97
, result_()
101
98
, covarianceCholeskyFactor_()
102
99
, covarianceCholeskyFactorHMatrix_()
103
100
{
104
- // Here we must force the GLMAlgo to keep the Cholesky factor as it is mandatory
105
- // for the interpolation part
106
- glmAlgo_ = GeneralLinearModelAlgorithm (inputSample, outputSample, covarianceModel, basisCollection, normalize, true );
107
101
// Force the GLM algo to use the exact same linear algebra as the Kriging algorithm
108
102
if (ResourceMap::Get (" KrigingAlgorithm-LinearAlgebra" ) == " HMAT" ) glmAlgo_.setMethod (1 );
109
103
else glmAlgo_.setMethod (0 );
@@ -120,15 +114,13 @@ KrigingAlgorithm::KrigingAlgorithm(const Sample & inputSample,
120
114
, outputSample_(outputSample)
121
115
, normalize_(true )
122
116
, covarianceModel_(covarianceModel)
117
+ , glmAlgo_(inputSample, inputTransformation, outputSample, covarianceModel, basis, true )
123
118
, gamma_(0 )
124
119
, rho_(0 )
125
120
, result_()
126
121
, covarianceCholeskyFactor_()
127
122
, covarianceCholeskyFactorHMatrix_()
128
123
{
129
- // Here we must force the GLMAlgo to keep the Cholesky factor as it is mandatory
130
- // for the interpolation part
131
- glmAlgo_ = GeneralLinearModelAlgorithm (inputSample, inputTransformation, outputSample, covarianceModel, basis, true );
132
124
// Force the GLM algo to use the exact same linear algebra as the Kriging algorithm
133
125
if (ResourceMap::Get (" KrigingAlgorithm-LinearAlgebra" ) == " HMAT" ) glmAlgo_.setMethod (1 );
134
126
else glmAlgo_.setMethod (0 );
@@ -145,16 +137,13 @@ KrigingAlgorithm::KrigingAlgorithm(const Sample & inputSample,
145
137
, outputSample_(outputSample)
146
138
, normalize_(true )
147
139
, covarianceModel_(covarianceModel)
148
- , glmAlgo_()
140
+ , glmAlgo_(inputSample, inputTransformation, outputSample, covarianceModel, basisCollection, true )
149
141
, gamma_(0 )
150
142
, rho_(0 )
151
143
, result_()
152
144
, covarianceCholeskyFactor_()
153
145
, covarianceCholeskyFactorHMatrix_()
154
146
{
155
- // Here we must force the GLMAlgo to keep the Cholesky factor as it is mandatory
156
- // for the interpolation part
157
- glmAlgo_ = GeneralLinearModelAlgorithm (inputSample, inputTransformation, outputSample, covarianceModel, basisCollection, true );
158
147
// Force the GLM algo to use the exact same linear algebra as the Kriging algorithm
159
148
if (ResourceMap::Get (" KrigingAlgorithm-LinearAlgebra" ) == " HMAT" ) glmAlgo_.setMethod (1 );
160
149
else glmAlgo_.setMethod (0 );
0 commit comments