Description Usage Arguments Value
Create an auxiliary function for counting a single speciman adaptation (single portfolio quality) Function takes *x* which is a single specimen (sequence of bits) and returns a value of its adaptation. The adaptation value is the expected portfolio return / portfolio risk.
1 2 | singleAdapt(x, num_genes, expectedReturn. = expectedReturn,
num_stocks. = num_stocks)
|
x |
speciman, which is a sequence of bits |
num_genes |
number of bits encoding single stock |
expectedReturn. |
a vector with expected return rates for analysed stocks |
num_stocks. |
number of stocks in analysis |
Value of adaptation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.