Giter VIP home page Giter VIP logo

tss_estimator's Introduction

tss_estimator

Estimate training load from heart rate data

Instructions:

  1. Clone repo
  2. Make a folder called bin/ (for object files and binaries) in the root directory
  3. In the root directory, run make
  4. Run ./bin/main

tss_estimator's People

Contributors

etoumey avatar jtoumey avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

tss_estimator's Issues

Read command line arguments

Add functionality to read arguments from the command line. For example, to calculate physiological stress from a file TestGPX.gpx, type (from the root directory):

./bin/main TestGPX.gpx

The branch name is read_command_line_arguments.

Add time subtracter function

  1. Determine the difference (in seconds) between two successive data points and store this amount of time (in a particular zone) in the correct bin
  2. Normalize time so we start at 0 (maybe not necessary)

Problem reading second test GPX file

I tested a second *.gpx file and got non-physical results. Run attached below:

bug_floatseconds_run

The good news is that the program was able tor read the other test file (test2.gpx). So that's cool. The bad news is that this particular file, for some reason, has seconds with a .000 at the end of the time tag. Here is a screenshot of the xml:

bug_floatseconds

File I/O vs User Input

If we take input straight from file using
./a.out < GPXFILE.gpx
How do we make sure the user can still input threshold HR?

OR, could threshold HR be hard-coded? User specific, but it stays the same right? Maybe slight variation with fitness

Organize build/run process

  1. Add additional binary types to .gitignore
  2. Revise the makefile so that it builds objects separately as the first step and links all objects and libraries as the second step.
  3. Figure out how to make the run script universal.

Input file string crash

Certain input strings (not exactly sure which) cause a stack overflow. The instance I've found is file names with three or more hyphens. Like default Garmin *.tcx files.

multiple_hypen-stack_overflow

Calculate Physiological Stress

We're finally at that point. I'll checkout a new branch and start the next function. This should be super straight forward (jonxed it).

Auto-pause

How to identify auto-paused data?

Could massively skew results if you stop after a sprint.

Data Interpolation

Trapezoidal approximation for intervals?

Is step approximation good enough?

LTHR String

don't input string or char for LTHR or else infinite loop. Trying to fix now.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.