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

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

Data Types

type  TestData_type
 

Functions/Subroutines

subroutine setTest ()
 
subroutine readTestData (TestData)
 
logical(LK) function test_runKmeans_1 ()
 
logical(LK) function test_runKmeans_2 ()
 test setKmeans() by passing a fixed initial set of cluster centers to the Kmeans constructor. More...
 
logical(LK) function test_runKmeans_3 ()
 If the optional input argument niterMax is specified, the output value for niter must not go beyond in the input value. In addition, if the specified value for niterMax has reached, the procedure must return with error stat code of 1. More...
 
logical(LK) function test_runKmeans_4 ()
 The function setKmeans() must function properly for reasonable optional input values of nfailMax and relTol. More...
 
logical(LK) function test_setKmeans_1 ()
 test setKmeans() by passing a number of tries to find the more optimal Kmeans clustering. More...
 
logical(LK) function test_setKmeans_2 ()
 The component index must be properly set by pm_clustering::setKmeans when it is given as input. More...
 
logical(LK) function test_setKmeans_3 ()
 The component index must be properly set by pm_clustering::setKmeans when it is given as input. More...
 
logical(LK) function test_setKmeans_4 ()
 When the pointLogVolNormed is missing, the properties of singular clusters must be correctly computed from the properties of non-singular clusters. More...
 
logical(LK) function test_benchmark_1 ()
 Calling the Kmeans routine repeatedly should not cause any errors. This test is also used for benchmarking the performances of different implementations of the Kmeans algorithm. More...
 

Variables

type(test_typetest
 
type(TestData_typeTestData
 

Detailed Description

This module contains tests of the module pm_clustering.

Author:
Amir Shahmoradi

Function/Subroutine Documentation

◆ readTestData()

subroutine test_pm_clustering::readTestData ( class(TestData_type TestData)

Definition at line 66 of file test_pm_kmeans.F90.

◆ setTest()

subroutine test_pm_clustering::setTest

Definition at line 47 of file test_pm_kmeans.F90.

◆ test_benchmark_1()

logical(LK) function test_pm_clustering::test_benchmark_1

Calling the Kmeans routine repeatedly should not cause any errors. This test is also used for benchmarking the performances of different implementations of the Kmeans algorithm.

Definition at line 806 of file test_pm_kmeans.F90.

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

◆ test_runKmeans_1()

logical(LK) function test_pm_clustering::test_runKmeans_1

Definition at line 88 of file test_pm_kmeans.F90.

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

◆ test_runKmeans_2()

logical(LK) function test_pm_clustering::test_runKmeans_2

test setKmeans() by passing a fixed initial set of cluster centers to the Kmeans constructor.

Definition at line 141 of file test_pm_kmeans.F90.

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

◆ test_runKmeans_3()

logical(LK) function test_pm_clustering::test_runKmeans_3

If the optional input argument niterMax is specified, the output value for niter must not go beyond in the input value. In addition, if the specified value for niterMax has reached, the procedure must return with error stat code of 1.

Definition at line 199 of file test_pm_kmeans.F90.

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

◆ test_runKmeans_4()

logical(LK) function test_pm_clustering::test_runKmeans_4

The function setKmeans() must function properly for reasonable optional input values of nfailMax and relTol.

Definition at line 254 of file test_pm_kmeans.F90.

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

◆ test_setKmeans_1()

logical(LK) function test_pm_clustering::test_setKmeans_1

test setKmeans() by passing a number of tries to find the more optimal Kmeans clustering.

Definition at line 310 of file test_pm_kmeans.F90.

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

◆ test_setKmeans_2()

logical(LK) function test_pm_clustering::test_setKmeans_2

The component index must be properly set by pm_clustering::setKmeans when it is given as input.

Definition at line 364 of file test_pm_kmeans.F90.

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

◆ test_setKmeans_3()

logical(LK) function test_pm_clustering::test_setKmeans_3

The component index must be properly set by pm_clustering::setKmeans when it is given as input.

Definition at line 434 of file test_pm_kmeans.F90.

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

◆ test_setKmeans_4()

logical(LK) function test_pm_clustering::test_setKmeans_4

When the pointLogVolNormed is missing, the properties of singular clusters must be correctly computed from the properties of non-singular clusters.

Definition at line 581 of file test_pm_kmeans.F90.

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

Variable Documentation

◆ test

type(test_type) test_pm_clustering::test

Definition at line 29 of file test_pm_kmeans.F90.

◆ TestData

type(TestData_type) test_pm_clustering::TestData

Definition at line 39 of file test_pm_kmeans.F90.