Programa para el testeo de las funciones.
Programa para el testeo de las funciones.Para compilar o código example_matrixmath_erf.cpp:
Para executar o programa:
Retornando por consola:
Pds::CDF::Probit(0.0): -inf Pds::CDF::Probit(0.1): -1.28155 Pds::CDF::Probit(0.3): -0.524401 Pds::CDF::Probit(0.5): 0 Pds::CDF::Probit(0.7): 0.524401 Pds::CDF::Probit(0.9): 1.28155 Pds::CDF::Probit(1.0): inf P.T(): 0 0.1 0.3 0.5 0.7 0.9 1 Pds::CDF::Probit(P).T(): -inf -1.2815515641402 -0.5244005132793 0 0.5244005132793 1.2815515641402 inf Pds::CDF::Phi(Pds::CDF::Probit(P)).T(): 0 0.10000000024648 0.29999999980138 0.5 0.70000000019862 0.89999999975352 1
Código example_matrixmath_erf.cpp: