Learn R Programming

Rdistance (version 1.3.2)

F.maximize.g: F.maximize.g - Finds the coordinate of the maximum of a distance function.

Description

Find the x coordinate that maximizes g(x).

Usage

F.maximize.g( fit )

Arguments

fit

An estimated 'dfunc' object produced by F.dfunc.estim.

Value

The value of x that maximized g(x) in fit.

See Also

F.dfunc.estim

Examples

Run this code
# NOT RUN {
#   Fake data
set.seed(22223333)
x <- rgamma(100, 10, 1)

fit <- F.dfunc.estim( x, likelihood="Gamma", x.scl="max" )

F.maximize.g( fit )  # should be near 10.
fit$x.scl            # same thing
# }

Run the code above in your browser using DataLab