get_power_profile: Get Power-x profile

Description Usage Arguments Value Examples

View source: R/profiles.R

Description

Applied polynomial linear regression model using power and x_var columns from the profile_data and returns calculated Pmax and Pmax_location in x_var

Usage

1
2
3
4
5
6
get_power_profile(
  profile_data,
  power = "mean_power",
  x_var = "mean_GRF_over_distance",
  poly_deg = 2
)

Arguments

profile_data

Data frame returned from vj_profile function

power

Character string. Name of the column in the profile_data. Default is "mean_power"

x_var

Character string. Name of the column in the profile_data. Default is "mean_GRF_over_distance"

poly_deg

Integer. Number of polynomial degrees. Forwarded to poly function. Default is 2

Value

List with calculated Pmax and Pmax_location

Examples

1
2
fv_profile <- vj_profile(mass = 75)
get_power_profile(fv_profile)

mladenjovanovic/vjsim documentation built on Aug. 7, 2020, 10:10 p.m.