Home | Develop | Download | Contact
example_matrixmath_erf.cpp
1
31#include <Pds/Ra>
32
33int main(void)
34{
35
36 std::cout<<"Pds::CDF::Probit(0.0):\t"<<Pds::CDF::Probit(0.0)<<"\n";
37 std::cout<<"Pds::CDF::Probit(0.1):\t"<<Pds::CDF::Probit(0.1)<<"\n";
38 std::cout<<"Pds::CDF::Probit(0.3):\t"<<Pds::CDF::Probit(0.3)<<"\n";
39 std::cout<<"Pds::CDF::Probit(0.5):\t"<<Pds::CDF::Probit(0.5)<<"\n";
40 std::cout<<"Pds::CDF::Probit(0.7):\t"<<Pds::CDF::Probit(0.7)<<"\n";
41 std::cout<<"Pds::CDF::Probit(0.9):\t"<<Pds::CDF::Probit(0.9)<<"\n";
42 std::cout<<"Pds::CDF::Probit(1.0):\t"<<Pds::CDF::Probit(1.0)<<"\n";
43
44 Pds::Vector P("0.0 0.1 0.3 0.5 0.7 0.9 1.0");
45 P.T().Print("P.T():\t");
46 Pds::CDF::Probit(P).T().Print("Pds::CDF::Probit(P).T():\n");
47 Pds::CDF::Phi(Pds::CDF::Probit(P)).T().Print("Pds::CDF::Phi(Pds::CDF::Probit(P)).T():\n");
48 return 0;
49}
La clase tipo Pds::Vector . Esta clase genera una matriz de Nlin lineas y 1 columna....
Definition: Vector.hpp:80
double Phi(double x)
Calcula el valor de la función .
double Probit(double p)
Calcula el valor de la función que es la inversa de Pds::CDF::Phi().

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed