I hereby claim:
- I am Doggie52 on github.
- I am doggie52 (https://keybase.io/doggie52) on keybase.
- I have a public key whose fingerprint is F22E EBFE EB86 77C9 A8C5 C828 E5E2 B3CD E334 772B
To claim this, I am signing this object:
| def GenerateOptimalPortfolioWeights(returnsDf): | |
| ########################################### | |
| # GENERATE MATRICES | |
| # - CALCULATING RETURNS, VOLS AND DVOLS | |
| # Populate annual returns | |
| assetsReturn = [] | |
| for assetName in returnsDf: | |
| assetReturn = returnsDf[assetName].add(1).product() - 1 |
| using System.IO; | |
| using System.Threading; | |
| namespace Util | |
| { | |
| /// <summary> | |
| /// Various extensions to the String class. | |
| /// </summary> | |
| public static class StringExtensions | |
| { |
| Function DIRR(first_price_cell As Range, first_date_cell As Range) As Double | |
| ' Gets various useful numbers | |
| Dim first_row As Long, last_row As Long, price_column As Long, date_column As Long, sheet As Worksheet | |
| first_row = first_price_cell.Row ' first row | |
| price_column = first_price_cell.Column ' price column | |
| date_column = first_date_cell.Column ' date column | |
| Set sheet = first_price_cell.Worksheet ' sheet for price | |
| last_row = sheet.Cells(sheet.Rows.Count, price_column).End(xlUp).Row ' get the last row | |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /** | |
| * Takes a roman numeral input and outputs its integer value. | |
| */ | |
| function roman_to_int( $in ) { | |
| $out = 0; | |
| $i = 0; | |
| $prev_map = 0; |
| function Plot = draw( Plot ) | |
| % Author: Douglas Stridsberg <d@stridsberg.uk> | |
| % | |
| % INFO | |
| % Redraws the plot, one BOID at a time. | |
| % Intended to be run once every frame. The Plot object requires | |
| % - an array of handles to old BOIDs created; | |
| % - an array of BOID objects. These, in turn, require | |
| % - position vectors. | |
| % |