mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 17:09:56 +00:00
Formula Vectors
You can create a vector using the notation: expr [ from : to ] Where 'expr' will be evaluated for every activity between the dates from and to. e.g. TSS[today - 90 : today] will evaluate to TSS for the last 90 days e.g. Activities [ date:date ] > 1 Will find all days with more than one workout. .. when using a vector in any arithmetic expression it will be evaluated to a sum; this will be fixed shortly to enable the use of sum/mean/max/min functions. .. If needed we can add vector operations but this will likely confuse many users (hell, they confuse developers) so we will need a good reason to add them ! Lastly, I have also added daterange(from) and daterange(to) literals to get access to the currently selected daterange when working in the trends view.
This commit is contained in:
@@ -165,6 +165,8 @@ SearchBox::configChanged(qint32)
|
||||
list << "config(units)";
|
||||
list << "const(e)";
|
||||
list << "const(pi)";
|
||||
list << "daterange(start)";
|
||||
list << "daterange(stop)";
|
||||
list << "ctl";
|
||||
list << "tsb";
|
||||
list << "atl";
|
||||
|
||||
Reference in New Issue
Block a user