calculate.terminal.velocity.phys: A function to calculate terminal velocity

Description Usage Arguments Value Examples

View source: R/calculate_terminal_velocity.R

Description

The function allows one to calculate terminal velocity using a physical model for free fall with air resistance for a large sphere.

Usage

1
2
3
4
5
6
7
calculate.terminal.velocity.phys(
  file,
  min.size,
  min.circularity,
  fps = 130,
  tubelength
)

Arguments

file

A .txt file containing pixel coordinates extracted from videos by imageJ

min.size

Minimum size (in pixels) of valid objects

min.circularity

Minimum circularity of valid objects

fps

Frame per second, defaults to 130 in our method

tubelength

2.095 m,1.575 m, and 1.075 m for long, medium, and short tube, respectively

Value

A list of estimated Vt using the linear and mechanistic models, data used to fit the models, intercept, R-squared values

Examples

1
2
3
4
5
6
library(velocimeter)
# not run
# calculate.terminal.velocity.phys(file =
# paste0(.libPaths()[which("velocimeter"%in%list.files(.libPaths()))],
# "/velocimeter/extdata/agri-short_00000.aviResults.txt"),
# min.size = 10,min.circularity = 0.05,fps = 130,tubelength = 1.075)

jinleizhu/velocimeter documentation built on Jan. 8, 2022, 1:19 a.m.