47template<
class Data,
class Coefs = ArrayXX>
51 typedef typename Data::Type
Type;
124template<
class Data,
class Coefs>
128 , useDataValues_(
true)
134template<
class Data,
class Coefs>
144template<
class Data,
class Coefs>
155template<
class Data,
class Coefs>
158 , p_data_(
basis.p_data_)
160 , useDataValues_(
basis.useDataValues_)
161 , minValue_(
basis.minValue_)
162 , maxValue_(
basis.maxValue_)
163 , coefficients_(
basis.coefficients_)
169template<
class Data,
class Coefs>
180template<
class Data,
class Coefs>
184 coefficients_.resize(p_data_->range(),
Range(0, dim_)) =0;
190 for (
int i=p_data_->begin();
i< p_data_->end();
i++)
192 minValue_ = std::min(minValue_, (*p_data_)[
i]);
193 maxValue_ = std::max(maxValue_, (*p_data_)[
i]);
197 if (minValue_ == maxValue_)
203 if (minValue_ > maxValue_)
In this file, we define the final class Array2D.
#define STKERROR_NO_ARG(Where, Error)
In this file we declare the utilities enumerations and methods for the Regress project.
Interface base class for all basis function.
bool initializeStep()
Initialize the parameters minValue_ and maxValue_ using data set.
virtual ~IBasis()
destructor
void setMaxValue(Type const &maxValue)
Data const * p_data_
the input data set
virtual void update()
update IBasis if a parameter or a new data set is set, update the state of this runner.
Type minValue_
Minimal value of the data.
Type maxValue_
Maximal value of the data.
void setData(Data const &data)
Set the data set.
IBasis(Data const *p_data, int dim, bool useDataValues=true)
constructor
IBasis(Data const &data, int dim, bool useDataValues=true)
constructor
int dim_
number of dimension to build
IBasis(IBasis const &basis)
copy constructor.
IBasis()
default constructor
void setMinValue(Type const &minValue)
Coefs coefficients_
Array2D of the coefficients.
Coefs const & coefficients() const
Abstract base class for all classes having a.
String msg_error_
String with the last error message.
bool hasRun_
true if run has been used, false otherwise
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
Index sub-vector region: Specialization when the size is unknown.
hidden::SliceVisitorSelector< Derived, hidden::MaxVisitor, Arrays::by_col_ >::type_result max(Derived const &A)
If A is a row-vector or a column-vector then the function will return the usual maximal value of the ...
The namespace STK is the main domain space of the Statistical ToolKit project.
Arithmetic properties of STK fundamental types.