STK++ 0.9.13
STK_MultiLaw_JointCauchy.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::STatistiK::MultiLaw
27 * created on: 23 janv. 2013
28 * Author: iovleff, S..._Dot_I..._At_stkpp_Dot_org (see copyright for ...)
29 **/
30
35#ifndef STK_MULTILAW_JOINTCAUCHY_H
36#define STK_MULTILAW_JOINTCAUCHY_H
37
39#include "STK_Law_Cauchy.h"
40
41namespace STK
42{
43
44namespace MultiLaw
45{
49template<class RowVector>
50class JointCauchy: public JointProbability<RowVector, Law::Cauchy>
51{
52 public:
55 JointCauchy(): Base(_T("JointCauchy")) {}
57 JointCauchy( int const& nbVar)
58 : Base(_T("JointCauchy"), nbVar) {}
60 virtual ~JointCauchy() {}
62 inline Real const& location(int const& j) const { return this->law(j).location();}
64 inline Real const& scale(int const& j) const { return this->law(j).scale();}
66 inline void setLocation(int const& j, Real const& location)
67 { this->law(j).setMu(location);}
69 inline void setScale(int const& j, Real const& scale)
70 { this->law(j).setScale(scale);}
71};
72
73} // namespace Law
74
75} // namespace STK
76
77#endif /* STK_MULTILAW_JOINTCAUCHY_H */
In this file we define the Cauchy probability distribution.
In this file we define the Interface base classes IMultiLaw and JointProbability.
#define _T(x)
Let x unmodified.
Implement the Joint Cauchy probability law.
Real const & scale(int const &j) const
Real const & location(int const &j) const
JointCauchy(int const &nbVar)
constructor
JointProbability< RowVector, Law::Cauchy > Base
void setLocation(int const &j, Real const &location)
set the location of the jth law
void setScale(int const &j, Real const &scale)
set the scale of the jth law
joint density class for the multivariate distributions.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.