Commit Graph

68 Commits

Author SHA1 Message Date
Mark Liversedge
7be34c1dcd malloc.h, you ok grandad?
.. its stdlib.h now old timer.
2021-09-30 19:56:43 +01:00
Mark Liversedge
70ed4e36e0 Voronoi diagram on chart
.. The diagram now displays on a chart, but there are a few issues.
   Will work through them as more testing done.
2021-09-30 19:00:35 +01:00
Mark Liversedge
5502d87af7 Additional Refactor Voronoi
.. updated to have a more Qt/C++ friendly interface:

    Voronoi *test = new Voronoi();
    test->addSite(QPointF(2,5));
    test->addSite(QPointF(3,2));
    test->addSite(QPointF(6,4));
    test->run(QRectF());
    delete test;

    the output is still written to standard out as a
    series of points, lines, vertexes and edges. This
    was to enable validation against the original
    c program.

.. whilst the original functionality is now embedded a
   further update will need to convert the output into
   a vector of lines to draw.

   will do this as part of adding it to a plot as an
   annotation.
2021-09-30 08:42:38 +01:00
Mark Liversedge
d56d52c01f Refactor Future's algorithm
.. from C to a C++ class.

   Moved the original code to a sundirectory for reference and
   moved all the global variables and methods into a new class
   called Voronoi.

.. the code still needs more work but wanted to remove the global
   variables as there were lots and a big risk they interact
   with other parts of the codebase and libraries.
2021-09-29 10:07:30 +01:00
Mark Liversedge
d568dd0e06 Linux build error (Another Voronoi fixup)
.. apologies, working on multiple platforms at once is a pain.

   will refactor the Steven Future code into its own C++ class
   in the next few days.
2021-09-28 23:02:01 +01:00
Mark Liversedge
53ee8f358c Future's Algorithm
.. for calculating Vornoi diagrams.
2021-09-28 19:28:42 +01:00
Mark Liversedge
4c720884b6 DataFilter - kmeans()
.. kmeans(centers|assignments, k, dim1, dim2 .. dimn)

   perform a k means cluster on data with multiple dimensions
   and return the centers, or the assignments.

   the return values are ordered so they can be displayed
   easily in an overview table e.g.

   values {
       kmeans(centers, 3, metrics(TSS), metrics(IF));
   }

.. will look at how we might plot these in charts with either
   color coding of points or perhaps voronoi diagrams.
2021-09-28 17:31:09 +01:00
Mark Liversedge
4c6c8e6d71 Additional Windows fixups for Fast Kmeans
.. std::max needs <algorithm> and don't need <unistd> at all.
2021-09-28 11:45:34 +01:00
Mark Liversedge
5fb2dfb73e Fast Kmeans on Windows
.. remove unused general functions that work with memory and time
   in a non-portable way.
2021-09-28 11:35:32 +01:00
Mark Liversedge
1dc1cd678f Fast Kmeans Algorithm
.. with grateful thanks to Greg Hamerly

   A fast kmeans algorithm described here:
   https://epubs.siam.org/doi/10.1137/1.9781611972801.12

   The source repository is also here:
   https://github.com/ghamerly/fast-kmeans

   NOTE:

   The original source has been included largely as-is with
   a view to writing a wrapper around it using Qt semantics
   for use in GoldenCheetah (e.g. via datafilter)

   The original source included multiple kmeans algorithms
   we have only kept the `fast' Hamerly variant.
2021-09-28 10:25:17 +01:00
Mark Liversedge
a4d928e4a0 More muted and modern Toolbar buttons
.. the side bar, bottom bar and related buttons were still
   following a skeuomorphic design that has long since
   fallen into disuse.

.. now have a more muted feel with hover/press colors active
   on mouse events.

.. moved the whatsthis button to the far right since this
   is quite a common placement in other apps.

.. it is noticeable how we use many many different schemes
   for hover/pressed colors across the UI- at some point
   this should be unified.

.. also deprecated the segmentcontrol.
2021-08-24 20:56:31 +01:00
Mark Liversedge
4d5841e4b1 Move Boost GeometricTools_BSplineCurve.h to contrib
.. it is not our code.
2021-05-16 12:27:17 +01:00
Mark Liversedge
e1ac00b860 Move contributed sources to contrib directory
.. Makes it easier to identify code that has been snaffled in from
   other repositories and check licensing

.. The httpserver is now no longer optional, since it is delivered
   as contributed source.
2021-05-16 10:33:09 +01:00
Dave Waterworth
5e9a5dc75c Fixes for Fortius USB timeout issue and new Fortius VR driver package built with Zadig
- Fortius read was timing out on some hardware
- If read fails then write fails
- Moved write before read to rectify
- Added windows 10 x64 compatible driver inf built with Zadig
2016-01-18 09:48:52 +13:00
Joern
052ac8222d LIBKML patch (only for Windows)
... removing tests,... from LIBKML build
... allowing building of base functionality of LIBKML on Windows with MinGW
... covering the LIBKML functional scope used by GoldenCheetah
2015-08-11 20:27:45 +02:00
Chet Henry
32d80b524a Fix inital screen load value format bug 2014-12-07 07:24:56 -07:00
Chet Henry
36f8b36df5 Even though ridelogger doen't use fit the ant+ plugin does 2014-12-07 07:24:56 -07:00
Chet Henry
69fbec9061 Syncronize values, keys and keylables
Also don't wait for unpaired ant devices forever
2014-12-07 07:24:56 -07:00
Chet Henry
dcb78aff9e Fix but with prefence update and screen. 2014-12-07 07:24:55 -07:00
Chet Henry
d899584d4b Lighter Ant+ connections 2014-12-07 07:24:55 -07:00
Chet Henry
1acd2304cf More ant code clean up 2014-12-07 07:24:55 -07:00
Chet Henry
18159ed113 Clean up ant code 2014-12-07 07:24:55 -07:00
Chet Henry
04d0042df7 Add classes to proguard keep 2014-12-07 07:24:55 -07:00
Chet Henry
b1f72ce77a Adding Proguard 2014-12-07 07:24:55 -07:00
Chet Henry
1efecf1705 Extendable File Format
All file formats to be extended

Also fixed a bug in the display of values
2014-12-07 07:24:55 -07:00
Chet Henry
54c4cd6daa Clean up code, reduce memory and make the world a better place 2014-12-07 07:24:55 -07:00
Chet Henry
1823e202ff Fix textview overflow in display 2014-12-07 07:24:55 -07:00
Chet Henry
3764b0b7ca Update view on sensor list change 2014-12-07 07:24:55 -07:00
Chet Henry
c63104f612 Clean up currenValues view and better style of dashboard 2014-12-07 07:24:55 -07:00
Chet Henry
0acce7538f Replace default diamater with circumference and increase it to 2.096 2014-12-07 07:24:55 -07:00
Chet Henry
204135fc20 Better frount screen layout 2014-12-07 07:24:55 -07:00
Chet Henry
58694d51b6 Change gzip extention to gz for bash completion 2014-12-07 07:24:55 -07:00
Chet Henry
cc31b093f8 Fix wheel size bug 2014-12-07 07:24:55 -07:00
Chet Henry
796a1d6a4e Comment out unimplemented message 2014-12-07 07:24:55 -07:00
Chet Henry
4000453d03 Add wheel diamater configuration 2014-12-07 07:24:55 -07:00
Chet Henry
f00c2deb1f Allow user to display imperial units 2014-12-07 07:24:55 -07:00
Chet Henry
842f334ff6 Fix ant+ ui flow 2014-12-07 07:24:55 -07:00
Chet Henry
f64acd3d68 Better theme and style 2014-12-07 07:24:55 -07:00
Chet Henry
f1bf65e60d Light theme and better sample view 2014-12-07 07:24:55 -07:00
Chet Henry
04ffb9f371 Fixup Settings
Add configurable display of sensors
Add configurable text size
Disable preferences if ride is logging
2014-12-07 07:24:55 -07:00
Chet Henry
1433c6d1a4 Reduce memory footprint and improve service performance 2014-12-07 07:24:55 -07:00
Chet Henry
f37d9e8516 Fix problems and wait a bit for ant+ pairing 2014-12-07 07:24:55 -07:00
Chet Henry
3f3bbf521c better grid view of data 2014-12-07 07:24:55 -07:00
Chet Henry
8278bcb5cf Better api version support 2014-12-07 07:24:55 -07:00
Chet Henry
7d9c596ceb Make app more android like
Changed preferences to use android stype prefs
Allowed values to be passed to main screen
Start and stop ride in main menu
2014-12-07 07:24:54 -07:00
Chet Henry
7b84ea2355 Adding view of current data 2014-12-07 07:24:54 -07:00
Chet Henry
470441671f Add a lot more string to strings.xml also add reset settings wf 2014-12-07 07:24:54 -07:00
Chet Henry
eb00126c42 Allows strings to be translated
Moved all string to strings.xml
Also removed WorkoutRepeatSteps.fit because it was unneeded
2014-12-07 07:24:54 -07:00
Chet Henry
1947387537 Make app relocatable to sdcard and make files readable by default 2014-11-25 17:59:45 -07:00
Chet Henry
f9edb3c43c Increase crash magnitude to 3g 2014-11-22 20:29:52 -07:00