STK++ 0.9.13
STK_DataBridge.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------*/
2/* Copyright (C) 2004-2016 Serge Iovleff
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this program; if not, write to the
16 Free Software Foundation, Inc.,
17 59 Temple Place,
18 Suite 330,
19 Boston, MA 02111-1307
20 USA
21
22 Contact : S..._DOT_I..._AT_stkpp.org (see copyright for ...)
23*/
24
25/*
26 * Project: stkpp::Clustering
27 * created on: 15 nov. 2013
28 * Author: iovleff, S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
29 **/
30
35#ifndef STK_DATABRIDGE_H
36#define STK_DATABRIDGE_H
37
38#include <Arrays.h>
39#include "STK_IDataBridge.h"
40
41namespace STK
42{
43
49template<class Data>
51{
52 public:
54 Data dataij_;
55
57 DataBridge( std::string const& idData): IDataBridge(idData), dataij_() {}
59 DataBridge( std::string const& idData, Data const& dataij): IDataBridge(idData), dataij_(dataij) {}
65 virtual ~DataBridge() {}
66
68 inline Data const& dataij() const { return dataij_;}
70 inline Data& dataij() { return dataij_;}
71};
72
73} // namespace STK
74
75#endif /* STK_DATABRIDGE_H */
This file include all the other header files of the project Arrays.
In this file we define the interface class IDataBridge.
bridge a data set in order to handle its missing values.
DataBridge(DataBridge const &bridge)
copy constructor (Warning: will copy the data set)
DataBridge(std::string const &idData)
default constructor.
virtual ~DataBridge()
destructor
Data const & dataij() const
Data dataij_
data set
DataBridge(std::string const &idData, Data const &dataij)
constructor with data.
Interface class wrapping a data set.
std::string const & idData() const
return the Id of the mixture
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
The namespace STK is the main domain space of the Statistical ToolKit project.