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

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

Data Types

interface  TestData_type
 

Functions/Subroutines

subroutine setTest ()
 
type(TestData_type) function contructTestData ()
 
logical(LK) function test_getEucDistSq_1 ()
 
logical(LK) function test_getPairDistSq_1 ()
 Test getPairDistSq(). More...
 
logical(LK) function test_getDistSortedExpDiff_1 ()
 Test setDisSortedExpDiff() for an even value of nd. More...
 
logical(LK) function test_getDistSortedExpDiff_2 ()
 Test setDisSortedExpDiff() for an even value of nd but with a reference point from within input set of points. More...
 
logical(LK) function test_getDistSortedExpDiff_3 ()
 Test setDisSortedExpDiff() for an odd value of nd with a reference point from within input set of points. More...
 
logical(LK) function test_getHub_1 ()
 Test getHub(). More...
 

Variables

type(test_typetest
 
type(TestData_typeTestData
 

Detailed Description

This module contains tests of the module pm_knn.

Author:
Amir Shahmoradi

Function/Subroutine Documentation

◆ contructTestData()

type(TestData_type) function test_pm_knn::contructTestData

Definition at line 195 of file test_pm_knn.F90.

◆ setTest()

subroutine test_pm_knn::setTest

Definition at line 179 of file test_pm_knn.F90.

◆ test_getDistSortedExpDiff_1()

logical(LK) function test_pm_knn::test_getDistSortedExpDiff_1

Test setDisSortedExpDiff() for an even value of nd.

Definition at line 280 of file test_pm_knn.F90.

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

◆ test_getDistSortedExpDiff_2()

logical(LK) function test_pm_knn::test_getDistSortedExpDiff_2

Test setDisSortedExpDiff() for an even value of nd but with a reference point from within input set of points.

Definition at line 343 of file test_pm_knn.F90.

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

◆ test_getDistSortedExpDiff_3()

logical(LK) function test_pm_knn::test_getDistSortedExpDiff_3

Test setDisSortedExpDiff() for an odd value of nd with a reference point from within input set of points.

Definition at line 406 of file test_pm_knn.F90.

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

◆ test_getEucDistSq_1()

logical(LK) function test_pm_knn::test_getEucDistSq_1

Definition at line 218 of file test_pm_knn.F90.

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

◆ test_getHub_1()

logical(LK) function test_pm_knn::test_getHub_1

Test getHub().

Definition at line 471 of file test_pm_knn.F90.

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

◆ test_getPairDistSq_1()

logical(LK) function test_pm_knn::test_getPairDistSq_1

Test getPairDistSq().

Definition at line 245 of file test_pm_knn.F90.

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

Variable Documentation

◆ test

type(test_type) test_pm_knn::test

Definition at line 32 of file test_pm_knn.F90.

◆ TestData

type(TestData_type) test_pm_knn::TestData

Definition at line 167 of file test_pm_knn.F90.