STK++ 0.9.13
tutoProbability.cpp File Reference
#include "STKpp.h"
Include dependency graph for tutoProbability.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 4 of file tutoProbability.cpp.

5{
6 Law::Normal l(2, 1);
7 stk_cout << "l.pdf(2)= " << l.pdf(2) << "\n";
8 stk_cout << "l.lpdf(2)= " << l.lpdf(2) << "\n";
9 stk_cout << "l.cdf(3.96)= " << l.cdf(3.96) << "\n";
10 stk_cout << "l.cdfc(3.96)= " << l.cdfc(3.96) << "\n";
11 stk_cout << "l.lcdf(3.96)= " << l.lcdf(3.96) << "\n";
12 stk_cout << "l.lcdfc(3.96)= "<< l.lcdfc(3.96)<< "\n";
13 stk_cout << "l.icdf(0.975)= "<< l.icdf(0.975)<< "\n";
14 stk_cout << "l.rand()= " << l.rand() << "\n";
15 CArray<Real, 2, 3> a; a = 0.5;
16 stk_cout << "-----------\n";
17 stk_cout << "a=\n" << a;
18 stk_cout << "a.pdf(l)=\n" << a.pdf(l);
19 stk_cout << "a.lpdf(l)=\n" << a.lpdf(l);
20 stk_cout << "a.cdf(l)=\n" << a.cdf(l);
21 stk_cout << "a.lcdf(l)=\n" << a.lcdf(l);
22 stk_cout << "a.cdfc(l)=\n" << a.cdfc(l);
23 stk_cout << "a.lcdfc(l)=\n"<< a.lcdfc(l);
24 stk_cout << "a.icdf(l)=\n" << a.icdf(l);
25}
#define stk_cout
Standard stk output stream.
Normal distribution law.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...

References STK::ExprBase< Derived >::cdf(), STK::Law::Normal::cdf(), STK::ExprBase< Derived >::cdfc(), STK::Law::IUnivLaw< Type >::cdfc(), STK::ExprBase< Derived >::icdf(), STK::Law::Normal::icdf(), STK::ExprBase< Derived >::lcdf(), STK::Law::IUnivLaw< Type >::lcdf(), STK::ExprBase< Derived >::lcdfc(), STK::Law::IUnivLaw< Type >::lcdfc(), STK::ExprBase< Derived >::lpdf(), STK::Law::Normal::lpdf(), STK::ExprBase< Derived >::pdf(), STK::Law::Normal::pdf(), STK::Law::Normal::rand(), and stk_cout.