R/predict_hist.R

Defines functions predict_hist

Documented in predict_hist

#' @title Prediction whith histogram
#' @description  this function
#'
#' @param hh  This function estimates values associated with a sample of data using the histogram.
#' @param x sample of observations
#'
#' @return prediction
predict_hist = function(hh,x)	{
  res=NULL
  for(i in 1:length(x))
    res[i] = predict_hist_x(hh,x[i])
  res
}
cugliari/bagdenest documentation built on April 6, 2022, 4:52 p.m.