#! /usr/bin/env python3 # def walker_sample_test ( ): #*****************************************************************************80 # # Purpose: # # WALKER_SAMPLE_TEST tests WALKER_SAMPLE. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 20 February 2016 # # Author: # # John Burkardt # import platform from i4_choose import i4_choose_test from i4_uniform_ab import i4_uniform_ab_test from normalize import normalize_test from r8vec_indicator0 import r8vec_indicator0_test from r8vec_print import r8vec_print_test from r8vec_uniform_01 import r8vec_uniform_01_test from random_permutation import random_permutation_test from walker_build import walker_build_test from walker_sampler import walker_sampler_test from walker_verify import walker_verify_test from zipf_probability import zipf_probability_test print ( '' ) print ( 'WALKER_SAMPLE_TEST:' ) print ( ' Python version: %s' % ( platform.python_version ( ) ) ) print ( ' Test the WALKER_SAMPLE library.' ) i4_choose_test ( ) i4_uniform_ab_test ( ) normalize_test ( ) r8vec_indicator0_test ( ) r8vec_print_test ( ) r8vec_uniform_01_test ( ) random_permutation_test ( ) walker_build_test ( ) walker_sampler_test ( ) walker_verify_test ( ) zipf_probability_test ( ) # # Terminate. # print ( '' ) print ( 'WALKER_SAMPLE_TEST:' ) print ( ' Normal end of execution.' ) return if ( __name__ == '__main__' ): from timestamp import timestamp timestamp ( ) walker_sample_test ( ) timestamp ( )