Skip to contents

Traces gradient descent path from a starting point using analytical gradient.

Usage

find.descending.trajectory.from.point(
  x,
  y,
  step = 0.01,
  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 descent

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

Value

Matrix of (x,y) coordinates along trajectory