STK++ 0.9.13
STK_Stat_Bivariate.h
Go to the documentation of this file.
1/*--------------------------------------------------------------------*/
2/* Copyright (C) 2004-2016 Serge Iovleff, Université Lille 1, Inria
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_Dot_org (see copyright for ...)
23*/
24
25/*
26 * Project: stkpp::StatDesc
27 * Purpose: Compute elementary statistics for two variables.
28 * Author: Serge Iovleff, S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
29 **/
30
35#ifndef STK_STAT_BIVARIATE_H
36#define STK_STAT_BIVARIATE_H
37
39
40namespace STK
41{
42namespace Stat
43{
44
54template < class XTYPE, class YTYPE, class TContainer1D >
56{
57 protected:
62
63 public:
75
82 { ;}
83
85 virtual ~Bivariate() { ;}
86
92 {
93 xStat_ = stat.xStat_;
94 yStat_ = stat.yStat_;
95 return *this;
96 }
97
102 void setData( TContainer1D const& X, TContainer1D const& Y)
103 {
106 }
107
112 };
113
114
115} // namespace Stat
116
117} // namespace STK
118
119#endif /*STK_STAT_BIVARIATE_H*/
This file contain the specialization of the class Univariate for the Real Type.
virtual void setData(YArray_ const &y, XArray_ const &x)
set the data set.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
Computation of the bivariate Statistics of two Variables.
Univariate< TContainer1D > xStat_
Statistics of the X variable.
Univariate< YTYPE, TContainer1D > yStat() const
get statistics of the second variable
virtual ~Bivariate()
virtual destructor.
Univariate< TContainer1D > yStat_
Statistics of the Y variable.
void setData(TContainer1D const &X, TContainer1D const &Y)
set a new data sets
Bivariate(const Bivariate &stat)
Copy constructor.
Bivariate & operator=(const Bivariate &stat)
Operator = : overwrite the Bivariate with stat.
Univariate< XTYPE, TContainer1D > xStat() const
get statistics of the first variable
Bivariate(ITContainer< TContainer1D > const &X, ITContainer< TContainer1D > const &Y)
Default constructor.
The namespace STK is the main domain space of the Statistical ToolKit project.