Displaying 6 results from an estimated 6 matches for "maxw".
Did you mean:
max
2017 Dec 27
1
Error in dimnames in R
...GAX,GFAFX,NMSAX,EGINX,IPOYX,SCWFX,FGLDX,PAGEX,all=F)
data <- as.timeSeries(portfolio_returns)
#Optimisation portfolio
library(fPortfolio)
spec <- portfolioSpec()
setNFrontierPoints <- 25
setSolver(spec) <- "solveRquadprog"
constraints <-
c("minW[1:1]=0.12","maxW[1:1]=0.18","minW[2:2]=0.12","maxW[2:2]=0.18",
"minW[3:3]=0.10","maxW[3:3]=0.15","minW[4:4]=0.08","maxW[4:4]=0.12",
"minW[5:5]=0.08","maxW[5:5]=0.12","minW[6:6]=0.05","maxW[6:6]=0.10",
"m...
2003 Jul 17
0
Silverman modality test
...s$y) / abs (diff (modes$y)))
modes <- rep(1, length(modes))[modes==-2]
modes <- sum (modes)
return (modes)
}
hcrit <- function (x, n, e=.0001)
# Returns the minimal window width such that the kernel density estimate
# of x has n modes.
{
minw <- min (abs (diff (x)))
maxw <- (max (x) - min (x))/2
winN <- maxw
winN1 <- minw
while (abs(winN-winN1)>e)
{
modes <- nbmodes (x, winN)
winN1 <- winN
if (modes > n)
{
minw <- winN
winN <- (winN + maxw)/2
}
else
{...
2012 Sep 04
0
Calculate a minimum-variance portfolio with fPortfolio
...since I would be able to
construct an equal-weighted portfolio that satisfies all of them (e.g. with
5% in each asset).
4. Reproducible example:
library(fPortfolio)
# Data
data <- SMALLCAP[, 1:20]
# Constraints
box.1 <- paste0("minW[1:nAssets] = ", 0)
box.2 <- paste0("maxW[1:nAssets] = ", 0.10)
box.3 <- "maxsumW[1:nAssets] = 1"
box.4 <- "minsumW[1:nAssets] = 1"
boxConstraints <- c(box.1, box.2, box.3, box.4)
# Portfolio Specs
Spec <- portfolioSpec()
# Calculate MinVar Portfolio
minvar <- minvariancePortfolio(
data = data,...
2007 Apr 30
0
[996] branches/wxruby2/wxwidgets_282: TopLevelWindow: add some 2.8 methods; document; add missing CentreOnScreen
...(%(arg-type)Size% size)
+
+A simpler interface for setting the size hints than
+"set_size_hints":#TopLevelWindow_setsizehints.
+
+h3(#TopLevelWindow_setsizehints). TopLevelWindow#set_size_hints
+
+ *set_size_hints*(%(arg-type)Integer% minW, %(arg-type)Integer% minH, %(arg-type)Integer% maxW=-1,
+ %(arg-type)Integer% maxH=-1,
+ %(arg-type)Integer% incW=-1,
+ %(arg-type)Integer% incH=-1)
+
+ *set_size_hints*(%(arg-type)Size% minSize, %(arg-type)Size% maxSize=DefaultSize,
+ %(arg-type)Size% incSize=DefaultSize)
+
+Allow...
2006 Dec 20
0
[791] trunk/wxruby2/swig/classes/include/wxWindow.h: Remove shadowing GetBestSize def causing warning, plus strip crufty comments
...nbsp    * \param int
-         * \param int
-        */
- virtual void SetSizeHints( int minW, int minH,
- int maxW = wxDefaultCoord, int maxH = wxDefaultCoord,
- int incW = wxDefaultCoord, int incH = wxDefaultCoord );
</del><ins>+ virtual void SetSizeHints( int minW, int minH,
+          &a...
2007 Apr 16
0
[969] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Cleanup and fixing of broken links.
...><span class="cx">
</span><span class="cx"> h3(#Window_setsizehints). Window#set_size_hints
</span><span class="cx">
</span><del>- *set_size_hints*(%(arg-type)Integer% minW, %(arg-type)Integer% minH, %(arg-type)Integer% maxW=-1,
</del><ins>+ *set_size_hints*(%(arg-type)Integer% minW, %(arg-type)Integer% minH, %(arg-type)Integer% maxW=-1,
</ins><span class="cx"> %(arg-type)Integer% maxH=-1,
</span><span class="cx"> %(arg-type)I...