R/LinePickingMean.R

Defines functions LinePickingMean

Documented in LinePickingMean

#' Get expected value for given problem and parameters
#'
#' For a given problem and parameters gives the expected value
#'
#' @param problem see \code{\link{LinePickingPDF}}
#' @param parameters the parameter necessary to describe 
#' the space given by problem.
#' @return expected value
#' @author Eric Parsonage, Matt Roughan, Jono Tuke
#' @export
#' @useDynLib LinePicking
#' @note August 25 2012
#' @examples
#' LinePickingMean(problem=0,parameters=10)
LinePickingMean <-
function(problem=0,parameters){
  tmp <- .Call('rLinePickingMean',
               as.integer(problem),
               parameters = as.double(parameters))
  if(tmp == -1){
    tmp <- GetNumMoment(problem=problem,parameters=parameters,k=1)
  }
  return(tmp)
}
mroughan/LinePicking documentation built on May 23, 2019, 7:48 a.m.