This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import numpy as np | |
import fitparse as fp | |
import pandas as pd | |
fname = "/mnt/c/Users/mcbaron/Desktop/6043548199_ACTIVITY.fit" | |
outcsv = "/mnt/c/Users/mcbaron/Desktop/twobytwo.csv" | |
# Read in the file | |
fitfile = fp.FitFile(fname) | |
fitfile.parse() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%Birthday problem simulation method | |
numPeople = 86; | |
%Let's ignore leap years | |
numDays = 356; | |
numTrials = 100000; | |
cumTriples = zeros(numTrials, 1); | |
numPeople = round(numPeople); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am mcbaron on github. | |
* I am mcbaron (https://keybase.io/mcbaron) on keybase. | |
* I have a public key whose fingerprint is 8FB5 FF4D F86C AE61 3B04 0102 D383 561E 174B A640 | |
To claim this, I am signing this object: |