[Returnanalytics-commits] r2126 - pkg/PerformanceAnalytics/sandbox/Meucci/R
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sun Jul 8 18:09:38 CEST 2012
Author: mkshah
Date: 2012-07-08 18:09:38 +0200 (Sun, 08 Jul 2012)
New Revision: 2126
Modified:
pkg/PerformanceAnalytics/sandbox/Meucci/R/EntropyProg.R
Log:
Updating comments
Modified: pkg/PerformanceAnalytics/sandbox/Meucci/R/EntropyProg.R
===================================================================
--- pkg/PerformanceAnalytics/sandbox/Meucci/R/EntropyProg.R 2012-07-08 12:54:16 UTC (rev 2125)
+++ pkg/PerformanceAnalytics/sandbox/Meucci/R/EntropyProg.R 2012-07-08 16:09:38 UTC (rev 2126)
@@ -27,7 +27,9 @@
#' @param A matrix consisting of inequality constraints (paired with argument 'b'). Denoted as 'F' in the Meucci paper
#' @param b vector consisting of inequality constraints (paired with matrix A). Denoted as 'f' in the Meucci paper
#'
-#' @return p_ revised probabilities based on entropy pooling
+#' @return a list with
+#' p_ revised probabilities based on entropy pooling
+#' optimizationPerformance a list with status of optimization, value, number of iterations and sum of probabilities.
#' @export
#'
#' @author Ram Ahluwalia \email{ram@@wingedfootcapital.com}
@@ -205,6 +207,22 @@
return( list( M_ = M_ , S_ = S_ ) )
}
+#' Generates histogram
+#'
+#' @param X a vector containing the data points
+#' @param p a vector containing the probabilities for each of the data points in X
+#' @param nBins expected number of Bins the data set is to be broken down into
+#' @param freq a boolean variable to indicate whether the graphic is a representation of frequencies
+#'
+#' @return a list with
+#' f the frequency for each midpoint
+#' x the midpoints of the nBins intervals
+#'
+#' @references
+#' \url{http://www.symmys.com}
+#' See Meucci script pHist.m used for plotting
+#' @author Ram Ahluwalia \email{ram@@wingedfootcapital.com}
+
pHist = function( X , p , nBins, freq = FALSE )
{
if ( length( match.call() ) < 3 )
More information about the Returnanalytics-commits
mailing list