Description Usage Arguments Value Examples
View source: R/calculate_terminal_velocity.R
The function allows one to calculate terminal velocity using a physical model for free fall with air resistance for a large sphere.
1 2 3 4 5 6 7 | calculate.terminal.velocity.phys(
file,
min.size,
min.circularity,
fps = 130,
tubelength
)
|
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 |
A list of estimated Vt using the linear and mechanistic models, data used to fit the models, intercept, R-squared values
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.