80 const std::vector<double>& values)
86 std::vector<double> sorted_values =
values;
87 std::sort(sorted_values.begin(), sorted_values.end());
209 result.append(
"=== GModelSpectralTablePar ===");
218 result.append(
"linear");
221 result.append(
"logarithmic");
224 result.append(
"invalid");
int size(void) const
Return number of nodes in node array.
int m_method
Interpolation method (0: linear, 1: logarithmic)
const std::string & name(void) const
Return parameter name.
GModelPar m_par
Model parameter.
std::string print(const GChatter &chatter=NORMAL) const
Print table model parameter.
GNodeArray m_values
Parameter values.
void clear(void)
Clear node array.
GModelSpectralTablePar(void)
Void constructor.
Model parameter class interface definition.
virtual ~GModelSpectralTablePar(void)
Destructor.
Spectral table model parameter class definition.
void clear(void)
Clear parameter.
void free_members(void)
Delete class members.
void init_members(void)
Initialise class members.
void copy_members(const GModelSpectralTablePar &par)
Copy class members.
void clear(void)
Clear table model parameter.
GModelSpectralTablePar * clone(void) const
Clone table model parameter.
Exception handler interface definition.
std::string parformat(const std::string &s, const int &indent=0)
Convert string in parameter format.
const GNodeArray & values(void) const
Return reference to table model parameter values as node array.
GModelPar & par(void)
Return reference to table model parameter.
Spectral table model parameter class.
GModelSpectralTablePar & operator=(const GModelSpectralTablePar &par)
Assignment operator.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.