CalculateEntropy_Model Subroutine

public subroutine CalculateEntropy_Model(this)

Base method for calculating entropy of a model When this method is not overridden, the entropy is simply set to 0.0. When you develop a model built on top of this abstract class or one of its children, it is recommended that you define a convex mathematical entropy function that is used as a measure of the model stability.

Arguments

TypeIntentOptionalAttributesName
class(Model), intent(inout) :: this

Contents


Source Code

  subroutine CalculateEntropy_Model(this)
  !! Base method for calculating entropy of a model
  !! When this method is not overridden, the entropy
  !! is simply set to 0.0. When you develop a model
  !! built on top of this abstract class or one of its
  !! children, it is recommended that you define a
  !! convex mathematical entropy function that is used
  !! as a measure of the model stability.
    implicit none
    class(Model),intent(inout) :: this

    this%entropy = 0.0_prec

  endsubroutine CalculateEntropy_Model