I'm trying to add a gradient plot to GC. So far I have just basically
made a copy of the altitude code (and then renamed it) so there is not
content yet. I've got so far that I have a (dimmed) gradient checkbox in
the "Ride Plot" tab now. I'm a little bit puzzled about how the data is
stored in the GC code.
I need to compute the gradient from altitude and distance data. I have
done similar stuff in matlab-code (for hrm-files and tcx-files) before.
Basically I want to use a number of samples around the a data point to
calculate the gradient, i.e., fit a function or smooth the data around a
point to get a robust estimate of the gradient.
Do I need to add specific code for this for every file format or can do
it globally after the data is loaded (preferable)? That is, where is it
best to add code for this?
/Fredrik
On Jun 3, 2010, at 6:30 AM, Mark Liversedge wrote:
> I'm also mucking about with a stacked graph (like this
> http://manyeyes.alphaworks.ibm.com/manyeyes/page/Stack_Graph.html) to
> support the Greg Steele Bottle of Sand chart.
> Cheers,
> Mark
I have attached a patch for some initial gradient stuff. I have not
used git before so be careful...
I have done this:
* Added a new data type for the gradient which is mostly a copy of the
altitude code (I think that this make sense even though it's "derived"
data).
* Added a new member function appendPoint which takes one more
argument (the grad arg) than than the old appendPoint function.
* Made the old appendPoint function call the new appendPoint with grad
= 0.0 (since we don't want to add/compute the gradient info in every
*RideFile.cpp file for the different file formats - right?)
grep for FIXME and TODO and you will find where I'm uncertain what to do.
Ideally I want to work on the raw (unprocessed, non-interpolated)
data. Which data type should I use then?
And, the patch is for your git rep Mark.
Regards,
/Fredrik
in the meantime you can clone my repo from
> git://github.com/liversedge/VirtualCheetah.git
>
I like Virtual Cheetah a lot and also see there is also a Peak WPK for
various times, I assume this is watts per Kilo, I have my weight
entered in the options section but just get "inf" shown as a value,
does this matrix work, am I doing something wrong or does WPK mean
something else.