piecewise Derived Type

type, public, abstract :: piecewise

Abstract spectrum base type.


Type-Bound Procedures

procedure(sampleInterface), public, deferred :: sample

Deferred procdure. Used to generate a sample from spectrum or get constant value etc.

  • subroutine sampleInterface(this, x, y, value) Prototype

    Arguments

    Type IntentOptional Attributes Name
    class(piecewise), intent(in) :: this
    real(kind=wp), intent(out) :: x
    real(kind=wp), intent(out) :: y
    real(kind=wp), intent(in), optional :: value

Source Code

    type, abstract :: piecewise
        contains
            !> Deferred procdure. Used to generate a sample from spectrum or get constant value etc.
            procedure(sampleInterface), deferred :: sample
    end type piecewise