portfolioReturn: Show portfolio return

Description Usage Arguments Value

View source: R/portfolioDetails.R

Description

Function decodes sequence of bits in *x* and returns expected return for a given portfolio.

Usage

1
2
portfolioReturn(x, num_genes, expectedReturn. = expectedReturn,
  num_stocks. = num_stocks)

Arguments

x

single portfolio (sequence of bits)

num_genes

number of bits encoding single stock

num_stocks.

number of stocks in analysis

Value

Value for expected return


rpietrusinski/GA-stock-prices documentation built on May 20, 2019, 5:43 p.m.