Class to store a prototype inside a Kohonen map
Class Constructor
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(kohonen_prototype) | :: | prototype |
A |
|||
real(kind=wp), | dimension(:,:) | :: | input_data |
A real array |
Class Destructor
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(kohonen_prototype), | intent(inout) | :: | prototype |
A |
Acccessor
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(kohonen_prototype) | :: | prototype |
A |
|||
real(kind=wp), | dimension(prototype%number_rows,prototype%number_columns) | :: | d |
A real variable with the value of the prototype |
Mutator
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(kohonen_prototype) | :: | prototype |
A |
|||
real(kind=wp), | intent(inout), | dimension(:,:) | :: | new_data |
Function to print a kohonen prototype
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(kohonen_prototype) | :: | prototype |
A |
|||
integer, | intent(inout), | optional | :: | unit_ |
An integer variable with the number of the unit |
Function to calculate the distance between two prototypes
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(kohonen_prototype) | :: | prototype |
A |
|||
type(kohonen_prototype) | :: | prototype1 |
A |
|||
class(distance_base), | allocatable | :: | f |
A real variable with the distance between prototypes
Function to get the number of rows of the prototype
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(kohonen_prototype) | :: | prototype |
A |
Integer variable with the number of rows
Function to get the number of columns of the prototype
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(kohonen_prototype) | :: | prototype |
A |
Integer variable with the number of columns
type kohonen_prototype !! Class to store a prototype inside a Kohonen map private real(kind=wp),allocatable :: data_(:,:) integer :: number_rows,number_columns contains ! procedure :: create => kohonen_prototype_constructor procedure :: destroy => kohonen_prototype_destructor procedure :: get_prototype => kohonen_prototype_accessor procedure :: set_prototype => kohonen_prototype_mutator procedure :: print => kohonen_prototype_print procedure :: distance => kohonen_prototype_distance procedure :: get_nrow => kohonen_prototype_nrow procedure :: get_ncol => kohonen_prototype_ncol ! end type kohonen_prototype