mmp_alldata: Returns the mean maximum power for a set of training...

Description Usage Arguments Value Author(s) Examples

View source: R/mmp_alldata.R

Description

Returns the moving maximum power for a bunch of activities, using the power data second-by-second, from all durations to the length of the training sessions. The input must be in form of a list.

Usage

1
mmp_alldata(act_power_list)

Arguments

act_power_list

A list containing the vector power data from a set of training sessions. It's good to use with get_power_data() within Golden Cheetah.

Value

It gives the mean maximum power for each activity within the power list.

Author(s)

Natan Freitas Leite.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## The function is currently defined as
function (act_power_list)
{
    mmp_alldata = list()
    l_pl = length(act_power_list)
    for (i in 1:l_pl) {
        mmp_alldata[[i]] = mmp_act(act_power_list[[i]])
        print(i)
    }
    return(mmp_alldata)
  }

  data(power_list)

  mmp_sessions=mmp_alldata(power_list[1:10]) #bigger files will take longer to run.
  plot(mmp_sessions[[1]])

Bolshom/optimumtt documentation built on May 24, 2019, 8:56 a.m.