From 95ee7fca4b4a30cc8e381b09c963b94512630521 Mon Sep 17 00:00:00 2001 From: Bertrand Date: Mon, 11 Apr 2016 14:17:21 +0000 Subject: début nettoyage et description dans README MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test_rtnorm.cpp | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 src/test_rtnorm.cpp (limited to 'src/test_rtnorm.cpp') diff --git a/src/test_rtnorm.cpp b/src/test_rtnorm.cpp deleted file mode 100644 index 48ce933..0000000 --- a/src/test_rtnorm.cpp +++ /dev/null @@ -1,45 +0,0 @@ -// Example for using rtnorm -// -// Copyright (C) 2012 Guillaume Dollé, Vincent Mazet (LSIIT, CNRS/Université de Strasbourg) -// Licence: GNU General Public License Version 2 -// see http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt -// -// Depends: LibGSL -// OS: Unix based system - - -#include -#include - -#include "rtnorm.hpp" - - -int main() -{ - double a = 1; // Left bound - double b = 9; // Right bound - double mu = 2; // Mean - double sigma = 3; // Standard deviation - std::pair s; // Output argument of rtnorm - int K = 1e5; // Number of random variables to generate - - //--- GSL random init --- - gsl_rng_env_setup(); // Read variable environnement - const gsl_rng_type* type = gsl_rng_default; // Default algorithm 'twister' - gsl_rng *gen = gsl_rng_alloc (type); // Rand generator allocation - - //--- generate and display the random numbers --- - //std::cout<<"# x p(x)"<