neighborhood_function_base Derived Type

type, public, abstract :: neighborhood_function_base

Abstract class used to derive classes that calculates the effect of the input on the units of a SOM (neighborhood function)


Inherited by

type~~neighborhood_function_base~~InheritedByGraph type~neighborhood_function_base neighborhood_function_base type~cauchy_neighborhood_function cauchy_neighborhood_function type~cauchy_neighborhood_function->type~neighborhood_function_base type~gaussian_neighborhood_function gaussian_neighborhood_function type~gaussian_neighborhood_function->type~neighborhood_function_base

Type-Bound Procedures

procedure(neighborhood_function_calculate), public, deferred :: calculate

  • function neighborhood_function_calculate(my_neigh_fn, geometric_distance) result(n) Prototype

    Subroutine template to calculate function Import section

    Arguments

    Type IntentOptional Attributes Name
    class(neighborhood_function_base) :: my_neigh_fn

    A neighborhood_function_base object

    real(kind=wp), intent(inout) :: geometric_distance

    A real variable with the geometric or grid distance of a SOM unit

    Return Value real(kind=wp)

    A real variable with the value of the neighborhood function

Source Code

type,abstract :: neighborhood_function_base
!! Abstract class used to derive classes that calculates the effect of the input on the 
!! units of a SOM (neighborhood function)
    contains
        procedure(neighborhood_function_calculate),deferred :: calculate
end type neighborhood_function_base