Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


  >  Docs Center  >  Libraries  >  Beaumont  >  PL_LIKE

PL_LIKE

PL_LIKE

Purpose


  This function calculates the log-likelihood of the data, under a
  powerlaw model. The powerlaw distribution is given by
  f(x) = (alpha - 1) (xmin)^(alpha - 1) x^(-alpha)

Category


  Statistics

Calling Sequence


  result = pl_like([params, derivs, data = data, alpha = alpha, xmin
                  = xmin])

Optional Inputs


  params: A two element vector specifying [alpha, xmin].
  derivs: A named variable to hold the partial derivative of the
          log-likelihood with respect to alpha and xmin.
 

Keyword Parameters


  data: A vector of data values, assumed to be >= xmin
  alpha: Another way to specify alpha. This takes precedence over any
        variable stored in params[0].
  xmin: Another way to specify xmin. This takes precedence over any
        variable stored in params[1].

Outputs


  Ln(Product( f(data_i) ) )

Restrictions


  To maximize speed, the function does not check for values of data <
  xmin. However, the output is useless when any data are < xmin.

Modification History


  June 2009 Written by Chris Beaumont



© 2018 Harris Geospatial Solutions, Inc. |  Privacy Policy
My Account    |    Store    |    Contact Us