35#ifndef STK_ICONTAINER2D_H
36#define STK_ICONTAINER2D_H
52template<
int SizeRows_,
int SizeCols_>
Interface base class for 2D containers.
IContainer2D()
Default constructor.
void shiftRows(int beg)
Set the first index of the rows.
void shiftCols(int beg)
Shift the columns first index to beg.
void incEndCols(int inc)
Increment the last index of the columns.
void setRows(RowRange const &I=RowRange())
Set the range of the number of rows.
void decEndRows(int dec)
Decrement the end of the number of rows.
void shift(int rbeg, int cbeg)
Set the first index of the rows and columns.
void decBeginRows(int dec)
Decrement the first index of the number of rows.
RowRange rows_
Vertical range : Range of the indexes for the rows.
void incBeginCols(int inc)
increment the first index of the columns.
void decBeginCols(int dec)
Decrement the columns first index.
void incEndRows(int inc)
Increment the end of the number of rows.
TRange< SizeCols_ > ColRange
Type of the Range for the columns.
void decLastIdxRows(int dec)
Decrement the end of the number of rows.
void incRangeRows(int inc)
Increment the range of the number of rows.
void incRangeCols(int inc)
Increment the columns range.
void decEndCols(int dec)
Decrement the last index of the columns.
void setRanges(RowRange const &I=RowRange(), ColRange const &J=ColRange())
Set the ranges of the container.
void decLastIdxCols(int dec)
Decrement the last index of the columns.
void incBeginRows(int inc)
Increment the first index of the number of rows.
RowRange const & rows() const
ColRange cols_
Horizontal range : Range of the indexes for the columns.
IContainer2D(RowRange const &I, ColRange const &J)
Constructor with specified ranges.
void incLastIdxRows(int inc)
Increment the end of the number of rows.
ColRange const & cols() const
void exchange(IContainer2D &T)
exchange this container with T
~IContainer2D()
destructor.
IContainer2D(IContainer2D const &T)
Copy constructor.
TRange< SizeRows_ > RowRange
Type of the Range for the rows.
void setCols(ColRange const &J=ColRange())
Set the columns range.
void incLastIdxCols(int inc)
Increment the last index of the columns.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
int begin() const
get the first index of the TRange.
TRange & incLast(int inc=1)
create the TRange [begin_, end_+inc)
int end() const
get the ending index of the TRange.
TRange & decFirst(int dec=1)
create the TRange [begin_-dec, end_]
int size() const
get the size of the TRange (the number of elements).
TRange & inc(int inc=1)
create the TRange [begin_+inc, end_+inc_].
TRange & incFirst(int inc=1)
create the TRange [begin_+inc, end_].
int lastIdx() const
get the last index of the TRange.
bool empty() const
check if the range is empty or not.
TRange & shift(int begin)
Shift the TRange giving the first element.
TRange & decLast(int dec=1)
create the TRange [begin_, end_-dec)
The namespace STK is the main domain space of the Statistical ToolKit project.