correlation_distance Derived Type

type, public, extends(distance_base) :: correlation_distance

Class to calculate the correlation distance


Inherits

type~~correlation_distance~~InheritsGraph type~correlation_distance correlation_distance type~distance_base distance_base type~correlation_distance->type~distance_base

Type-Bound Procedures

procedure, public :: calculate => calculate_correlation_distance

  • private function calculate_correlation_distance(distance, vector1, vector2) result(d)

    Function to calculate the Manhattan distance between vectors A real variable with the distance

    Arguments

    Type IntentOptional Attributes Name
    class(correlation_distance) :: distance

    A Manhattan_distance object

    real(kind=wp), intent(inout), dimension(:,:) :: vector1

    A real vector

    real(kind=wp), intent(inout), dimension(:,:) :: vector2

    A real vector

    Return Value real(kind=wp)

    A real vector

Source Code

    type,extends(distance_base) :: correlation_distance
    !! Class to calculate the correlation distance
        contains
            procedure,public :: calculate => calculate_correlation_distance
    end type correlation_distance