probe_fgen: Probe Force Generator

Description Usage Arguments Value Examples

View source: R/probing.R

Description

Probe Force Generator

Usage

1
2
3
4
5
6
7
8
probe_fgen(
  current_time = 0,
  current_distance = 0,
  current_velocity = 0,
  change_ratio = seq(0.8, 1.2, length.out = 100),
  aggregate = "raw",
  ...
)

Arguments

current_time

Numeric value. Initial system state whose change is probed

current_distance

Numeric value. Initial system state whose change is probed

current_velocity

Numeric value. Initial system state whose change is probed

change_ratio

Numeric vector indicating probing change ratios

aggregate

How should fgen_get_output output be aggregated? Default is "raw". Other options involve "ratio" and "diff" which use initial output values

...

Extra argument forwarded to fgen_get_output

Value

Probing data frame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
require(tidyverse)

fgen_probe_data <- probe_fgen(
  current_time = 0.3,
  current_distance = 0.3,
  current_velocity = 1
)

plot_data <- gather(fgen_probe_data, key = "variable", value = "value", -(1:2))

ggplot(plot_data, aes(x = change_ratio, y = value, color = probing)) +
  geom_line() +
  facet_wrap(~variable, scales = "free_y") +
  xlab("Normalized parameter change") +
  ylab(NULL)

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