R/LogNormal.R

#' @description The class \code{LogNormal} implements the LogNormal distribution.
#' @title LogNormal
#' @inheritParams Distribution
#' @include Distribution.R
#' @export

LogNormal = new_class( "LogNormal", package = "PFIM", parent = Distribution )

#' adjustGradient: adjust the gradient for the log normal distribution.
#' @name adjustGradient
#' @param distribution An object \code{Distribution} giving the distribution.
#' @param gradient The gradient of the model responses.
#' @return The adjusted gradient of the model responses.
#' @export

method( adjustGradient, LogNormal ) = function( distribution, gradient ) {
  gradient = gradient * prop( distribution, "mu" )
  return( gradient ) }

Try the PFIM package in your browser

Any scripts or data that you put into this service are public.

PFIM documentation built on Jan. 30, 2026, 5:08 p.m.