fsml_typ.f90 Source File


This file depends on

sourcefile~~fsml_typ.f90~~EfferentGraph sourcefile~fsml_typ.f90 fsml_typ.f90 sourcefile~fsml_ini.f90 fsml_ini.f90 sourcefile~fsml_typ.f90->sourcefile~fsml_ini.f90

Files dependent on this one

sourcefile~~fsml_typ.f90~~AfferentGraph sourcefile~fsml_typ.f90 fsml_typ.f90 sourcefile~fsml.f90 fsml.f90 sourcefile~fsml.f90->sourcefile~fsml_typ.f90 sourcefile~fsml_dat.f90 fsml_dat.f90 sourcefile~fsml.f90->sourcefile~fsml_dat.f90 sourcefile~fsml_dat.f90->sourcefile~fsml_typ.f90

Source Code

module fsml_typ
!
! |--------------------------------------------------------------------|
! | fsml - fortran statistics and machine learning library             |
! |                                                                    |
! | about                                                              |
! | -----                                                              |
! | Derived types for fsml.                                            |
! |                                                                    |
! | license : MIT                                                      |
! | author  : Sebastian G. Mutz (sebastian@sebastianmutz.com)          |
! |--------------------------------------------------------------------|

! FORD
!! Module for kinds and derived types; sets working precision.

  ! load modules
  use :: fsml_ini

  ! basic options
  implicit none
  private

  ! declare public
  public :: fsml_typ_df

! ==== Definitions

  ! simple dataframe
  type :: fsml_typ_df
     !! Derived type for dataframe.
     integer(i4)                    :: id        !! ID/index for data frame
     character(len=64), allocatable :: nm        !! dataframe name
     real(wp)         , allocatable :: data(:,:) !! data
     integer(i4)      , allocatable :: row_id(:) !! ID/key/index for rows
     integer(i4)      , allocatable :: col_id(:) !! ID/key/index for columns
     character(len=64), allocatable :: row_nm(:) !! names/labels for rows
     character(len=64), allocatable :: col_nm(:) !! names/labels for columns
  end type fsml_typ_df

end module fsml_typ