Find Ascending Trajectory from Point
Source:R/2d_smooth_morse_smale.R
find.ascending.trajectory.from.point.RdTraces gradient ascent path from a starting point using analytical gradient.
Usage
find.ascending.trajectory.from.point(
x,
y,
step,
mixture,
max_steps = 1000,
grad_threshold = 1e-05,
angle_threshold = -0.5,
domain = list(x_min = 0, x_max = 1, y_min = 0, y_max = 1)
)Arguments
- x
Starting x coordinate
- y
Starting y coordinate
- step
Step size for gradient ascent
- mixture
Object with gradient method
- max_steps
Maximum number of steps (default 1000)
- grad_threshold
Gradient magnitude threshold (default 1e-5)
- angle_threshold
Angle change threshold (default -0.5)
- domain
Domain boundaries as list