GModelPar.cpp
27.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
/***************************************************************************
* GModelPar.cpp - Model parameter class *
* ----------------------------------------------------------------------- *
* copyright (C) 2009-2013 by Juergen Knoedlseder *
* ----------------------------------------------------------------------- *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
* *
***************************************************************************/
/**
* @file GModelPar.cpp
* @brief GModelPar class implementation.
* @author Juergen Knoedlseder
*/
/* __ Includes ___________________________________________________________ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "GException.hpp"
#include "GModelPar.hpp"
#include "GTools.hpp"
/* __ Method name definitions ____________________________________________ */
#define G_FACTOR_VALUE "GModelPar::factor_value(double&)"
#define G_FACTOR_MIN "GModelPar::factor_min(double&)"
#define G_FACTOR_MAX "GModelPar::factor_max(double&)"
#define G_SCALE "GModelPar::scale(double&)"
#define G_READ "GModelPar::read(GXmlElement&)"
/* __ Macros _____________________________________________________________ */
/* __ Coding definitions _________________________________________________ */
/* __ Debug definitions __________________________________________________ */
/*==========================================================================
= =
= Constructors/destructors =
= =
==========================================================================*/
/***********************************************************************//**
* @brief Void constructor
***************************************************************************/
GModelPar::GModelPar(void)
{
// Initialise members
init_members();
// Return
return;
}
/***********************************************************************//**
* @brief Parameter constructor
*
* @param[in] name Parameter name.
* @param[in] value Parameter value.
*
* Constructs a model parameter from a parameter @p name and a parameter
* @p value.
*
* The parameter is auto-scaled, which for a @p value that differs from zero
* sets the scale factor to @p value and the @p factor_value to unity. For a
* @p value of zero, the scale factor will be set to unity and the
* @p factor_value will be set to @p value.
***************************************************************************/
GModelPar::GModelPar(const std::string& name, const double& value)
{
// Initialise members
init_members();
// Set name attribute
m_name = name;
// Set auto-scaled factor and scale attributes
if (value != 0.0) {
m_factor_value = 1.0;
m_scale = value;
}
else {
m_factor_value = value;
m_scale = 1.0;
}
// Return
return;
}
/***********************************************************************//**
* @brief Parameter constructor
*
* @param[in] name Parameter name.
* @param[in] factor Parameter value factor.
* @param[in] scale Parameter scaling.
*
* Constructs a model parameter from a parameter @p name, value @p factor
* and @p scale factor.
***************************************************************************/
GModelPar::GModelPar(const std::string& name,
const double& factor,
const double& scale)
{
// Initialise members
init_members();
// Set attributes
m_name = name;
m_factor_value = factor;
m_scale = scale;
// Return
return;
}
/***********************************************************************//**
* @brief Copy constructor
*
* @param[in] par Model parameter.
***************************************************************************/
GModelPar::GModelPar(const GModelPar& par)
{
// Initialise members
init_members();
// Copy members
copy_members(par);
// Return
return;
}
/***********************************************************************//**
* @brief Destructor
***************************************************************************/
GModelPar::~GModelPar(void)
{
// Free members
free_members();
// Return
return;
}
/*==========================================================================
= =
= Operators =
= =
==========================================================================*/
/***********************************************************************//**
* @brief Assignment operator
*
* @param[in] par Model parameter.
* @return Model parameter.
***************************************************************************/
GModelPar& GModelPar::operator=(const GModelPar& par)
{
// Execute only if object is not identical
if (this != &par) {
// Free members
free_members();
// Initialise members
init_members();
// Copy members
copy_members(par);
} // endif: object was not identical
// Return
return *this;
}
/*==========================================================================
= =
= Public methods =
= =
==========================================================================*/
/***********************************************************************//**
* @brief Clear model parameter
***************************************************************************/
void GModelPar::clear(void)
{
// Free class members
free_members();
// Initialise members
init_members();
// Return
return;
}
/***********************************************************************//**
* @brief Clone model parameter
*
* @return Pointer to deep copy of model parameter.
***************************************************************************/
GModelPar* GModelPar::clone(void) const
{
// Clone model parameter
return new GModelPar(*this);
}
/***********************************************************************//**
* @brief Set parameter value
*
* @param[in] value Parameter value.
*
* Sets the parameter value. The method stores the value factor which is
* obtained by dividing the @p value by the scale factor.
*
* The method calls factor_value() for assigning the value factor, and this
* method will verify that the value lies within the specified boundaries.
***************************************************************************/
void GModelPar::value(const double& value)
{
// Set value factor. The GModelPar class makes sure that m_scale is
// never 0, so no test is needed here
factor_value(value / m_scale);
// Return
return;
}
/***********************************************************************//**
* @brief Set parameter error
*
* @param[in] error Parameter error.
*
* Sets the parameter error. The method stores the error factor which is
* obtained by dividing the @p error by the scale factor.
***************************************************************************/
void GModelPar::error(const double& error)
{
// Set error factor. The GModelPar class makes sure that m_scale is
// never 0, so no test is needed here
factor_error(error / m_scale);
// Return
return;
}
/***********************************************************************//**
* @brief Set parameter gradient
*
* @param[in] gradient Parameter gradient.
*
* Sets the parameter gradient. The method stores the gradient factor which
* is obtained by dividing @p gradient by the scale factor.
***************************************************************************/
void GModelPar::gradient(const double& gradient)
{
// Set gradient factor. The GModelPar class makes sure that m_scale is
// never 0, so no test is needed here
factor_gradient(gradient / m_scale);
// Return
return;
}
/***********************************************************************//**
* @brief Set minimum parameter boundary
*
* @param[in] min Parameter minimum.
*
* Sets the minimum parameter boundary. The method stores the minimum
* boundary factor which is obtained by dividing @p min by the scale factor.
***************************************************************************/
void GModelPar::min(const double& min)
{
// Set minimum boundary factor. The GModelPar class makes sure that
// m_scale is never 0, so no test is needed here
factor_min(min / m_scale);
// Return
return;
}
/***********************************************************************//**
* @brief Set maximum parameter boundary
*
* @param[in] max Parameter maximum.
*
* Sets the maximum parameter boundary. The method stores the maximum
* boundary factor which is obtained by dividing @p max by the scale factor.
***************************************************************************/
void GModelPar::max(const double& max)
{
// Set maximum boundary factor. The GModelPar class makes sure that
// m_scale is never 0, so no test is needed here
factor_max(max / m_scale);
// Return
return;
}
/***********************************************************************//**
* @brief Set minimum and maximum parameter boundaries
*
* @param[in] min Parameter minimum.
* @param[in] max Parameter maximum.
*
* Sets the minimum and maximum parameter boundaries. The method calls the
* min() and max() methods to set the boundaries.
***************************************************************************/
void GModelPar::range(const double& min, const double& max)
{
// Set minimum and maximum
this->min(min);
this->max(max);
// Return
return;
}
/***********************************************************************//**
* @brief Set parameter value factor
*
* @param[in] value Value factor.
*
* @exception GException::invalid_argument
* Parameter @p value outside [min,max] boundaries.
*
* Sets the value factor of the model parameter. The method makes sure that
* none of the boundaries is violated. Otherwise, exceptions are thrown.
***************************************************************************/
void GModelPar::factor_value(const double& value)
{
// If there is a minimum boundary and if value is below this boundary
// then throw an exception
if (m_hasmin && value < m_factor_min) {
std::string msg = "Specified value factor "+str(value)+
" is smaller than the minimum boundary "+
str(m_factor_min)+".";
throw GException::invalid_argument(G_FACTOR_VALUE, msg);
}
// If there is a maximum boundary and if value is above this boundary
// then throw an exception
if (m_hasmax && value > m_factor_max) {
std::string msg = "Specified value factor "+str(value)+
" is larger than the maximum boundary "+
str(m_factor_max)+".";
throw GException::invalid_argument(G_FACTOR_VALUE, msg);
}
// Assign value
m_factor_value = value;
// Return
return;
}
/***********************************************************************//**
* @brief Set parameter minimum factor
*
* @param[in] min Minimum factor.
*
* @exception GException::invalid_argument
* Parameter @p min larger than value factor.
*
* Sets the minimum boundary factor of the model parameter. The method makes
* sure that the minimum is not larger than the actual value factor.
* Otherwise, an exception is thrown.
***************************************************************************/
void GModelPar::factor_min(const double& min)
{
// Check if minimum is larger than value
if (min > m_factor_value) {
std::string msg = "Specified minimum factor "+str(min)+
" is larger than the value factor "+
str(m_factor_value)+".";
throw GException::invalid_argument(G_FACTOR_VALUE, msg);
}
// Assign minimum factor
m_factor_min = min;
// Flag that minimum was set
m_hasmin = true;
// Return
return;
}
/***********************************************************************//**
* @brief Set parameter maximum factor
*
* @param[in] max Maximum factor.
*
* @exception GException::invalid_argument
* Parameter @p max smaller than value factor.
*
* Sets the maximum boundary factor of the model parameter. The method makes
* sure that the maximum is not smaller than the actual value factor.
* Otherwise, an exception is thrown.
***************************************************************************/
void GModelPar::factor_max(const double& max)
{
// Check if maximum is smaller than value
if (max < m_factor_value) {
std::string msg = "Specified maximum factor "+str(max)+
" is smaller than the value factor "+
str(m_factor_value)+".";
throw GException::invalid_argument(G_FACTOR_VALUE, msg);
}
// Assign maximum
m_factor_max = max;
// Flag that maximum was set
m_hasmax = true;
// Return
return;
}
/***********************************************************************//**
* @brief Set parameter minimum and maximum factors
*
* @param[in] min Minimum factor.
* @param[in] max Maximum factor.
*
* Sets the minimum and maximum boundary factors. The method calls the
* factor_min() and factor_max() methods which perform validity checking
* of the arguments.
***************************************************************************/
void GModelPar::factor_range(const double& min, const double& max)
{
// Set minimum and maximum
factor_min(min);
factor_max(max);
// Return
return;
}
/***********************************************************************//**
* @brief Set scale factor
*
* @param[in] scale Scale factor.
*
* @exception GException::invalid_argument
* Sacle factor of 0 specified.
*
* Sets the scale factor of the model parameter. All parameter attributes are
* rescaled accordingly.
*
* Special care is taken for value boundaries, that need swaping if the scale
* factor changes its sign. In case of sign change the following logic applies:
* - if minimum and maximum boundaries are set they are swapped
* - if only a minimum boundary exists it will be replaced by a maximum boundary
* - if only a maximum boundary exists it will be replaced by a minimum boundary
*
* An exception is thrown if a scale factor of 0 is specified.
***************************************************************************/
void GModelPar::scale(const double& scale)
{
// Make sure that scale is not zero
if (scale == 0.0) {
std::string msg = "Specified scale factor of 0.\n"
"Model parameters need a non-zero scale factor.";
throw GException::invalid_argument(G_SCALE, msg);
}
// Set rescaling
double rescale = m_scale/scale;
// Set new scale factor
m_scale = scale;
// Set values, error, gradient, min and max
m_factor_value *= rescale;
m_factor_error *= rescale;
m_factor_gradient *= rescale;
if (m_hasmin) {
m_factor_min *= rescale;
}
if (m_hasmax) {
m_factor_max *= rescale;
}
// Takes care of boundaries in case of sign change
if (rescale < 0.0) {
if (m_hasmin && m_hasmax) {
double swap = m_factor_min;
m_factor_min = m_factor_max;
m_factor_max = swap;
}
else if (m_hasmin) {
m_factor_max = m_factor_min;
m_hasmax = true;
m_factor_min = 0.0;
m_hasmin = false;
}
else if (m_hasmax) {
m_factor_min = m_factor_max;
m_hasmin = true;
m_factor_max = 0.0;
m_hasmax = false;
}
}
// Return
return;
}
/***********************************************************************//**
* @brief Autoscale parameter
*
* Sets the value factor to unity and the scale factor to the real value
* of the parameter. The method will also adjust the error factor and
* gradient factor, as well as the minimum and maximum factors if they
* exist.
*
* Special care is taken for value boundaries, that need swaping if the scale
* factor changes its sign. In case of sign change the following logic applies:
* - if minimum and maximum boundaries are set they are swapped
* - if only a minimum boundary exists it will be replaced by a maximum boundary
* - if only a maximum boundary exists it will be replaced by a minimum boundary
*
* The method does nothing if the actual value factor is zero.
***************************************************************************/
void GModelPar::autoscale(void)
{
// Continue only if the value factor is non-zero
if (m_factor_value != 0.0) {
// Set the scale factor
m_scale *= m_factor_value;
// Get inverse scaling factor
double invscale = 1.0 / m_factor_value;
// Set values, error, gradient, min and max
m_factor_value *= invscale;
m_factor_error *= invscale;
m_factor_gradient *= invscale;
if (m_hasmin) {
m_factor_min *= invscale;
}
if (m_hasmax) {
m_factor_max *= invscale;
}
// Takes care of boundaries in case of sign change
if (invscale < 0.0) {
if (m_hasmin && m_hasmax) {
double swap = m_factor_min;
m_factor_min = m_factor_max;
m_factor_max = swap;
}
else if (m_hasmin) {
m_factor_max = m_factor_min;
m_hasmax = true;
m_factor_min = 0.0;
m_hasmin = false;
}
else if (m_hasmax) {
m_factor_min = m_factor_max;
m_hasmin = true;
m_factor_max = 0.0;
m_hasmax = false;
}
}
} // endif: value was non-zero
// Return
return;
}
/***********************************************************************//**
* @brief Extract parameter attributes from XML element
*
* @param[in] xml XML element
*
* @exception GException::invalid_value
* Invalid combination of parameter attributes encountered.
*
* Extracts the parameter attributes from an XML element of the form
*
* <parameter name=".." value=".." error=".." scale=".." min=".." max="..' free="..">
*
* Each of the attributes are optional, with the following scheme for
* assigning default values in case that the attribute was not found:
* - @p value sets @p m_factor_value (defaults to 0.0)
* - @p error sets @p m_factor_error (defaults to 0.0)
* - @p scale sets @p m_scale (defaults to 1.0)
* - @p min sets @p m_factor_min (will remove_min() if not found)
* - @p max sets @p m_factor_max (will remove_max() if not found)
* - @p free sets @p m_free (papameter will be fixed if not found)
***************************************************************************/
void GModelPar::read(const GXmlElement& xml)
{
// Get value
std::string arg = xml.attribute("value");
if (arg != "") {
m_factor_value = todouble(arg);
}
else {
m_factor_value = 0.0;
}
// Get error
arg = xml.attribute("error");
if (arg != "") {
m_factor_error = todouble(arg);
}
else {
m_factor_error = 0.0;
}
// Get scale factor
arg = xml.attribute("scale");
if (arg != "") {
m_scale = todouble(arg);
}
else {
m_scale = 1.0;
}
// Get min
arg = xml.attribute("min");
if (arg != "") {
m_factor_min = todouble(arg);
m_hasmin = true;
}
else {
remove_min();
}
// Get max
arg = xml.attribute("max");
if (arg != "") {
m_factor_max = todouble(arg);
m_hasmax = true;
}
else {
remove_max();
}
// Get free
if (xml.attribute("free") == "1" ||
tolower(xml.attribute("free")) == "true") {
free();
}
else {
fix();
}
// If there is a minimum and maximum, make sure that the maximum is
// not smaller than the minimum
if (m_hasmin && m_hasmax) {
if (m_factor_min > m_factor_max) {
std::string msg = "The model parameter "+m_name+
" in the XML document has a minimum boundary "+
str(m_factor_min)+
" that is larger than the maximum boundary "+
str(m_factor_max)+".\n"+xml.print();
throw GException::invalid_value(G_READ, msg);
}
}
// If there is a minimum, make sure that the value is not below it
if (m_hasmin && m_factor_value < m_factor_min) {
std::string msg = "The model parameter "+m_name+
" in the XML document has a value "+
str(m_factor_value)+
" that is smaller than the minimum boundary "+
str(m_factor_min)+".\n"+xml.print();
throw GException::invalid_value(G_READ, msg);
}
// If there is a maximum, make sure that the value is not above it
if (m_hasmax && m_factor_value > m_factor_max) {
std::string msg = "The model parameter "+m_name+
" in the XML document has a value "+
str(m_factor_value)+
" that is larger than the maximum boundary "+
str(m_factor_max)+".\n"+xml.print();
throw GException::invalid_value(G_READ, msg);
}
// Return
return;
}
/***********************************************************************//**
* @brief Set or update parameter attributes in XML element
*
* @param[in] xml XML element.
*
* Sets or updates the parameter attributes in an XML element of the form
*
* <parameter name=".." value=".." error=".." scale=".." min=".." max="..' free="..">
*
* The following attributes will be set:
* - @p value
* - @p error (only in case that the parameter is free)
* - @p scale
* - @p min (only in case that a minimum exists)
* - @p max (only in case that a maximum exists)
* - @p free
***************************************************************************/
void GModelPar::write(GXmlElement& xml) const
{
// Set value
xml.attribute("value", str(m_factor_value));
// Set error (only if parameter is free)
if (isfree()) {
xml.attribute("error", str(m_factor_error));
}
// Set scale
xml.attribute("scale", str(m_scale));
// Set minimum
if (hasmin()) {
xml.attribute("min", str(m_factor_min));
}
// Set maximum
if (hasmax()) {
xml.attribute("max", str(m_factor_max));
}
// Set free/fix flag
if (isfree()) {
xml.attribute("free", "1");
}
else {
xml.attribute("free", "0");
}
// Return
return;
}
/***********************************************************************//**
* @brief Print parameter information
*
* @return String with model parameter information.
***************************************************************************/
std::string GModelPar::print(void) const
{
// Initialise result string
std::string result;
// Append parameter name
result.append(parformat(" "+name()));
// Append value
result.append(str(value()));
// For free parameters, append statistical uncertainty
if (m_free) {
result.append(" +/- "+str(std::abs(error())));
}
// Append parameter limites if they exist
if (m_hasmin && m_hasmax) {
result.append(" ["+str(min()) + ","+str(max())+"]");
}
else if (m_hasmin) {
result.append(" ["+str(min()) + ",infty[");
}
else if (m_hasmax) {
result.append(" ]-infty,"+str(max())+"]");
}
// Append parameter unit
result.append(" "+m_unit);
// Signal if parameter was free or fixed
if (m_free) {
result.append(" (free");
}
else {
result.append(" (fixed");
}
// Append parameter scale
result.append(",scale="+str(m_scale));
// Signal if parameter has analytic gradient
if (m_hasgrad) {
result.append(",gradient)");
}
else {
result.append(")");
}
// Return result
return result;
}
/*==========================================================================
= =
= Private methods =
= =
==========================================================================*/
/***********************************************************************//**
* @brief Initialise class members
***************************************************************************/
void GModelPar::init_members(void)
{
// Initialise members
m_name.clear();
m_unit.clear();
m_factor_value = 0.0;
m_factor_error = 0.0;
m_factor_gradient = 0.0;
m_factor_min = 0.0;
m_factor_max = 0.0;
m_scale = 1.0;
m_free = true;
m_hasmin = false;
m_hasmax = false;
m_hasgrad = false;
// Return
return;
}
/***********************************************************************//**
* @brief Copy class members
*
* @param[in] par Model parameter.
***************************************************************************/
void GModelPar::copy_members(const GModelPar& par)
{
// Copy members
m_name = par.m_name;
m_unit = par.m_unit;
m_factor_value = par.m_factor_value;
m_factor_error = par.m_factor_error;
m_factor_gradient = par.m_factor_gradient;
m_factor_min = par.m_factor_min;
m_factor_max = par.m_factor_max;
m_scale = par.m_scale;
m_free = par.m_free;
m_hasmin = par.m_hasmin;
m_hasmax = par.m_hasmax;
m_hasgrad = par.m_hasgrad;
// Return
return;
}
/***********************************************************************//**
* @brief Delete class members
***************************************************************************/
void GModelPar::free_members(void)
{
// Return
return;
}