approxPot1D {waydown} | R Documentation |
Approximate potential in one dimension
Description
Approximate potential in one dimension
Usage
approxPot1D(f, xs, V0 = "auto")
Arguments
f |
One-dimensional representing the flow (right hand side of differential equation) |
xs |
Vector of positions to evaluate |
V0 |
(Optional) Value of V at first element of xs. When default, the global minimum is assigned 0 |
Value
The potential estimated at each point in xs
Author(s)
Pablo RodrÃguez-Sánchez (https://pabrod.github.io)
References
https://arxiv.org/abs/1903.05615
See Also
Examples
# Flow
f = function(x) { sin(x) }
# Sampling points
xs <- seq(0, 2*pi, length.out = 1e3)
# Approximated potential
Vs <- approxPot1D(f, xs)
[Package waydown version 1.1.0 Index]