ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
test_pm_sampleQuan Module Reference

This module contains tests of the module pm_sampleQuan. More...

Functions/Subroutines

subroutine setTest ()
 
logical(LK) function test_getQuantile_1 ()
 
logical(LK) function test_getQuantile_2 ()
 
logical(LK) function test_getMedian_RK_1 ()
 
logical(LK) function test_getMedian_RK_2 ()
 

Variables

type(test_typetest
 
integer(IK), parameter lenRnd = 50_IK
 
real(RK), dimension(lenRndStdNormRnd1 = [ 0.537667139546100_RK , 1.83388501459509_RK , -2.25884686100365_RK , 0.862173320368121_RK , 0.318765239858981_RK , -1.30768829630527_RK , -0.433592022305684_RK , 0.342624466538650_RK , 3.57839693972576_RK , 2.76943702988488_RK , -1.34988694015652_RK , 3.03492346633185_RK , 0.725404224946106_RK , -0.0630548731896562_RK , 0.714742903826096_RK , -0.204966058299775_RK , -0.124144348216312_RK , 1.48969760778547_RK , 1.40903448980048_RK , 1.41719241342961_RK , 0.671497133608081_RK , -1.20748692268504_RK , 0.717238651328839_RK , 1.63023528916473_RK , 0.488893770311789_RK , 1.03469300991786_RK , 0.726885133383238_RK , -0.303440924786016_RK , 0.293871467096658_RK , -0.787282803758638_RK , 0.888395631757642_RK , -1.14707010696915_RK , -1.06887045816803_RK , -0.809498694424876_RK , -2.94428416199490_RK , 1.43838029281510_RK , 0.325190539456198_RK , -0.754928319169703_RK , 1.37029854009523_RK , -1.71151641885370_RK , -0.102242446085491_RK , -0.241447041607358_RK , 0.319206739165502_RK , 0.312858596637428_RK , -0.864879917324457_RK , -0.0300512961962686_RK , -0.164879019209038_RK , 0.627707287528727_RK , 1.09326566903948_RK , 1.10927329761440_RK ]
 
integer, parameter ndata = 50
 
real(RK), dimension(ndata), parameter DataUnsorted_RK = [ 5.28935260000000_RK , 5.50145870000000_RK , 5.89022390000000_RK , 5.06549460000000_RK , 5.62128260000000_RK , 4.49246930000000_RK , 3.54559920000000_RK , 4.17171310000000_RK , 5.34432780000000_RK , 4.30855910000000_RK , 6.12466330000000_RK , 4.45103540000000_RK , 4.08259680000000_RK , 7.64761290000000_RK , 6.53095480000000_RK , 6.07550490000000_RK , 7.32100850000000_RK , 5.82501650000000_RK , 4.19347540000000_RK , 4.89687790000000_RK , 5.61290890000000_RK , 5.70994940000000_RK , 5.00047920000000_RK , 5.47741520000000_RK , 4.99151560000000_RK , 5.08172850000000_RK , 5.98773500000000_RK , 6.97849360000000_RK , 6.91612860000000_RK , 4.90595890000000_RK , 5.71852950000000_RK , 4.12146660000000_RK , 5.51241440000000_RK , 5.26293780000000_RK , 5.14932990000000_RK , 4.14738170000000_RK , 5.55786790000000_RK , 7.08800450000000_RK , 6.08987380000000_RK , 4.73697940000000_RK , 3.80934450000000_RK , 6.03942270000000_RK , 5.96600840000000_RK , 6.06674510000000_RK , 5.84361600000000_RK , 6.19013970000000_RK , 4.43891700000000_RK , 4.45833300000000_RK , 5.47659170000000_RK , 4.65761920000000_RK ]
 

Detailed Description

This module contains tests of the module pm_sampleQuan.

Author:
Amir Shahmoradi

Function/Subroutine Documentation

◆ setTest()

subroutine test_pm_sampleQuan::setTest

Definition at line 301 of file test_pm_quantile.F90.

◆ test_getMedian_RK_1()

logical(LK) function test_pm_sampleQuan::test_getMedian_RK_1

Definition at line 412 of file test_pm_quantile.F90.

◆ test_getMedian_RK_2()

logical(LK) function test_pm_sampleQuan::test_getMedian_RK_2

Definition at line 438 of file test_pm_quantile.F90.

References DataUnsorted_RK.

◆ test_getQuantile_1()

logical(LK) function test_pm_sampleQuan::test_getQuantile_1

Definition at line 314 of file test_pm_quantile.F90.

References pm_kind::IK, and pm_kind::RK.

◆ test_getQuantile_2()

logical(LK) function test_pm_sampleQuan::test_getQuantile_2

Definition at line 369 of file test_pm_quantile.F90.

References pm_kind::IK, and pm_kind::RK.

Variable Documentation

◆ DataUnsorted_RK

real(RK), dimension(ndata), parameter test_pm_sampleQuan::DataUnsorted_RK = [ 5.28935260000000_RK , 5.50145870000000_RK , 5.89022390000000_RK , 5.06549460000000_RK , 5.62128260000000_RK , 4.49246930000000_RK , 3.54559920000000_RK , 4.17171310000000_RK , 5.34432780000000_RK , 4.30855910000000_RK , 6.12466330000000_RK , 4.45103540000000_RK , 4.08259680000000_RK , 7.64761290000000_RK , 6.53095480000000_RK , 6.07550490000000_RK , 7.32100850000000_RK , 5.82501650000000_RK , 4.19347540000000_RK , 4.89687790000000_RK , 5.61290890000000_RK , 5.70994940000000_RK , 5.00047920000000_RK , 5.47741520000000_RK , 4.99151560000000_RK , 5.08172850000000_RK , 5.98773500000000_RK , 6.97849360000000_RK , 6.91612860000000_RK , 4.90595890000000_RK , 5.71852950000000_RK , 4.12146660000000_RK , 5.51241440000000_RK , 5.26293780000000_RK , 5.14932990000000_RK , 4.14738170000000_RK , 5.55786790000000_RK , 7.08800450000000_RK , 6.08987380000000_RK , 4.73697940000000_RK , 3.80934450000000_RK , 6.03942270000000_RK , 5.96600840000000_RK , 6.06674510000000_RK , 5.84361600000000_RK , 6.19013970000000_RK , 4.43891700000000_RK , 4.45833300000000_RK , 5.47659170000000_RK , 4.65761920000000_RK ]

Definition at line 240 of file test_pm_quantile.F90.

Referenced by test_getMedian_RK_2().

◆ lenRnd

integer(IK), parameter test_pm_sampleQuan::lenRnd = 50_IK

Definition at line 31 of file test_pm_quantile.F90.

◆ ndata

integer, parameter test_pm_sampleQuan::ndata = 50

Definition at line 188 of file test_pm_quantile.F90.

◆ StdNormRnd1

real(RK), dimension(lenRnd) test_pm_sampleQuan::StdNormRnd1 = [ 0.537667139546100_RK , 1.83388501459509_RK , -2.25884686100365_RK , 0.862173320368121_RK , 0.318765239858981_RK , -1.30768829630527_RK , -0.433592022305684_RK , 0.342624466538650_RK , 3.57839693972576_RK , 2.76943702988488_RK , -1.34988694015652_RK , 3.03492346633185_RK , 0.725404224946106_RK , -0.0630548731896562_RK , 0.714742903826096_RK , -0.204966058299775_RK , -0.124144348216312_RK , 1.48969760778547_RK , 1.40903448980048_RK , 1.41719241342961_RK , 0.671497133608081_RK , -1.20748692268504_RK , 0.717238651328839_RK , 1.63023528916473_RK , 0.488893770311789_RK , 1.03469300991786_RK , 0.726885133383238_RK , -0.303440924786016_RK , 0.293871467096658_RK , -0.787282803758638_RK , 0.888395631757642_RK , -1.14707010696915_RK , -1.06887045816803_RK , -0.809498694424876_RK , -2.94428416199490_RK , 1.43838029281510_RK , 0.325190539456198_RK , -0.754928319169703_RK , 1.37029854009523_RK , -1.71151641885370_RK , -0.102242446085491_RK , -0.241447041607358_RK , 0.319206739165502_RK , 0.312858596637428_RK , -0.864879917324457_RK , -0.0300512961962686_RK , -0.164879019209038_RK , 0.627707287528727_RK , 1.09326566903948_RK , 1.10927329761440_RK ]

Definition at line 84 of file test_pm_quantile.F90.

◆ test

type(test_type) test_pm_sampleQuan::test

Definition at line 29 of file test_pm_quantile.F90.