STK++ 0.9.13
STK::Regress Namespace Reference

This namespace encloses all variables and constant specific to the Regress project. More...

Enumerations

enum  TypeBasisFunction {
  unknown_basis_ = -1 , bspline_ , sines_ , cosines_ ,
  trigonometric_ , chebyshev
}
 functional basis coefficients to use for fonctional and non-linear regression More...
 
enum  TypeRegression { unknown_regression_ = -1 , linear_ , additiveBSpline_ , adaptiveBSpline_ }
 Regression method to use. More...
 
enum  KnotsPosition { uniformKnotsPositions_ , periodicKnotsPositions_ , densityKnotsPositions_ , unknown_Knots_Position_ = -1 }
 Method to use for positioning the knots for BSpline basis. More...
 

Functions

TypeRegression stringToTypeRegression (String const &type)
 Convert a String to a TypeRegression.
 
String typeRegressionToString (TypeRegression const &type)
 Convert a TypeRegression to a String.
 
KnotsPosition stringToKnotsPosition (String const &type)
 convert a String to a KnotsPosition.
 
String knotsPositionToString (KnotsPosition const &type)
 convert a KnotsPosition to a String.
 

Detailed Description

This namespace encloses all variables and constant specific to the Regress project.

Function Documentation

◆ stringToKnotsPosition()

KnotsPosition STK::Regress::stringToKnotsPosition ( String const type)
inline

convert a String to a KnotsPosition.

Parameters
typethe type of KnotsPosition in a string
Returns
the KnotsPosition represented by the String type. If the string does not match any known name, the unknown_regression_ type is returned.

Definition at line 133 of file STK_Regress_Util.h.

134{
135 if (toUpperString(type) == toUpperString(_T("uniform"))) return uniformKnotsPositions_;
136 if (toUpperString(type) == toUpperString(_T("periodic"))) return periodicKnotsPositions_;
137 if (toUpperString(type) == toUpperString(_T("density"))) return densityKnotsPositions_;
138 return unknown_Knots_Position_;
139}
#define _T(x)
Let x unmodified.
String const & toUpperString(String &s)
convert the characters of the String to upper case
Definition STK_String.h:134

References _T, densityKnotsPositions_, periodicKnotsPositions_, STK::toUpperString(), uniformKnotsPositions_, and unknown_Knots_Position_.

Referenced by STK::AdditiveBSplineRegressionPage::validate().