- Home
- R-Forge
**tourr**: Implement tour methods in pure R code**geodesic_path**: Generate geodesic path.

# Generate geodesic path.

### Description

Generate geodesic path.

### Usage

1 | ```
geodesic_path(current, target, frozen)
``` |

### Arguments

`new_target_f` |
function that generates new frame, with previous frame as argument |

### Details

Wrap basis generation method with a function that keeps computes the geodesic interpolation from the previous frame to the next frame, and provides convenient access to all the information about the path.

Frozen variables allow us to keep certain values of the projection fixed and generate a geodesic across the subspace generated by those

### Value

`interpolate` |
A function with single parameter in [0, 1] that returns an interpolated frame between the current and future frames. 0 gives the current plane, 1 gives the new target frame in plane of current frame. |

`dist` |
The distance, in radians, between the current and target frames. |

`Fa` |
The current frame. |

`Fz` |
The new target frame. |

`tau` |
The principle angles between the current and target frames. |

`Ga` |
The current plane. |

`Gz` |
The target plane. |

### Examples

1 2 3 4 5 6 7 8 | ```
a <- basis_random(4, 2)
b <- basis_random(4, 2)
path <- geodesic_path(a, b)
path$dist
all.equal(a, path$interpolate(0))
# Not true generally - a rotated into plane of b
all.equal(b, path$interpolate(1))
``` |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.

- anaglyph: Draw anaglyphs with base graphics.
- anaglyph: Draw anaglyphs with base graphics.
- andrews: Compute Andrews' curves...
- andrews: Compute Andrews' curves...
- animate: Animate a tour path.
- animate: Animate a tour path.
- as.array.history_array: Make into an Array from History Array...
- as.array.history_array: Make into an Array from History Array...
- as.array.history_list: Make into an Array from History List...
- as.array.history_list: Make into an Array from History List...
- as.list.history_array: Make into a List from History Array...
- as.list.history_array: Make into a List from History Array...
- as.list.history_list: Make into a List from History List...
- as.list.history_list: Make into a List from History List...
- bases_little: Generate bases for the little tour...
- bases_little: Generate bases for the little tour...
- basis_init: Generate initial basis.
- basis_init: Generate initial basis.
- basis_nearby: Generate nearby bases, e...
- basis_nearby: Generate nearby bases, e...
- basis_random: Generate a random basis...
- basis_random: Generate a random basis...
- blank_plot: Set up a blank plot to display data projections...
- blank_plot: Set up a blank plot to display data projections...
- check_freezer_safe: Check matrix is a valid frozen matrix...
- check_freezer_safe: Check matrix is a valid frozen matrix...
- cm: Central mass index.
- cm: Central mass index.
- data-flea: Flea beatle measurements
- data-flea: Flea beatle measurements
- data-laser: Turnable laser measurements from Bellcore
- data-laser: Turnable laser measurements from Bellcore
- data-olive: Olive oil samples from Italy
- data-olive: Olive oil samples from Italy
- data-ozone: Monthly ozone measurements over Central America
- data-ozone: Monthly ozone measurements over Central America
- data-places: Ratings of different locations across North America
- data-places: Ratings of different locations across North America
- data-ratcns: Rat CNS Gene Expression
- data-ratcns: Rat CNS Gene Expression
- data-sleep: Sleep in Mammals: Ecological and Constitutional Correlates
- data-sleep: Sleep in Mammals: Ecological and Constitutional Correlates
- data-tao: Tropical Atmosphere Ocean data
- data-tao: Tropical Atmosphere Ocean data
- dependence_tour: A dependence tour path.
- dependence_tour: A dependence tour path.
- display_andrews: Andrews' curves tour path animation.
- display_andrews: Andrews' curves tour path animation.
- display_depth: Display 3d projection with depth cues...
- display_depth: Display 3d projection with depth cues...
- display_dist: 1d distribution tour path animation.
- display_dist: 1d distribution tour path animation.
- display_faces: Chernoff faces tour path animation.
- display_faces: Chernoff faces tour path animation.
- display_ggobi: Display tour path with ggobi...
- display_ggobi: Display tour path with ggobi...
- display_image: Image tour path animation.
- display_image: Image tour path animation.
- display_pcp: Parallel coordinates tour path animation.
- display_pcp: Parallel coordinates tour path animation.
- display_scatmat: Scatterplot matrix tour path animation.
- display_scatmat: Scatterplot matrix tour path animation.
- display_stars: Star glyph tour path animation.
- display_stars: Star glyph tour path animation.
- display_stereo: Anaglpyh tour path animation.
- display_stereo: Anaglpyh tour path animation.
- display_xy: Display tour path with a scatterplot...
- display_xy: Display tour path with a scatterplot...
- draw_tour_axes: Draw tour axes with base graphics...
- draw_tour_axes: Draw tour axes with base graphics...
- find_best_dir: Find the most promising direction to travel in.
- find_best_dir: Find the most promising direction to travel in.
- find_best_frozen_dir: Find most promising direction in frozen space.
- find_best_frozen_dir: Find most promising direction in frozen space.
- find_frozen_path_peak: Find most highest peak along frozen geodesic.
- find_frozen_path_peak: Find most highest peak along frozen geodesic.
- find_path_peak: Find the most interesting projection along a geodesic.
- find_path_peak: Find the most interesting projection along a geodesic.
- find_platform: Find the platform...
- find_platform: Find the platform...
- freeze: Freeze and thaw matrices...
- freeze: Freeze and thaw matrices...
- frozen_guided_tour: The frozen guided tour...
- frozen_guided_tour: The frozen guided tour...
- frozen_tour: A frozen tour path.
- frozen_tour: A frozen tour path.
- geodesic_info: Calculate information required to interpolate along a...
- geodesic_info: Calculate information required to interpolate along a...
- geodesic_path: Generate geodesic path.
- geodesic_path: Generate geodesic path.
- grand_tour: A grand tour path.
- grand_tour: A grand tour path.
- guided_tour: A guided tour path.
- guided_tour: A guided tour path.
- holes: Holes index.
- holes: Holes index.
- interpolate: Interpolate geodesically between bases.
- interpolate: Interpolate geodesically between bases.
- is_orthonormal: Test if a numeric matrix is orthonormal.
- is_orthonormal: Test if a numeric matrix is orthonormal.
- lda_pp: LDA projection pursuit index.
- lda_pp: LDA projection pursuit index.
- little_tour: A little tour path.
- little_tour: A little tour path.
- local_tour: A local tour path.
- local_tour: A local tour path.
- new_geodesic_path: Generate a geodesic path between bases supplied by...
- new_geodesic_path: Generate a geodesic path between bases supplied by...
- new_tour: Create a new tour.
- new_tour: Create a new tour.
- normalise: Normalise a numeric matrix.
- normalise: Normalise a numeric matrix.
- nul: A null function...
- nul: A null function...
- orthonormalise: Orthonormalise using modified Gram-Schmidt process.
- orthonormalise_by: Orthonnormalise one matrix by another.
- orthonormalise_by: Orthonnormalise one matrix by another.
- path_curves: Draw the path that the geodesics took.
- path_curves: Draw the path that the geodesics took.
- path_dist: Compute distance matrix from bases.
- path_dist: Compute distance matrix from bases.
- path_index: Compute index values for a tour history.
- path_index: Compute index values for a tour history.
- paths_index: Compute index value for many histories.
- paths_index: Compute index value for many histories.
- pda_pp: PDA projection pursuit index.
- pda_pp: PDA projection pursuit index.
- planned_tour: A planned tour path.
- planned_tour: A planned tour path.
- plot.path_curve: Plot history curves.
- plot.path_curve: Plot history curves.
- plot.path_index: Plot history index with ggplot2.
- plot.path_index: Plot history index with ggplot2.
- print.history_array: Prints the History Array...
- print.history_array: Prints the History Array...
- print.tour_path: Print tour path...
- print.tour_path: Print tour path...
- proj_dist: Calculate the distance between two bases.
- proj_dist: Calculate the distance between two bases.
- project3d: Stereographic projection...
- project3d: Stereographic projection...
- render: Render frames of animation to disk...
- render: Render frames of animation to disk...
- rescale: Rescale a matrix or data frame...
- rescale: Rescale a matrix or data frame...
- save_history: Save tour history.
- save_history: Save tour history.
- search_better: Search for a better projection near the current projection.
- search_better: Search for a better projection near the current projection.
- search_better_random: Search for better projection, with stochastic component.
- search_better_random: Search for better projection, with stochastic component.
- search_frozen_geodesic: Search for most interesting projection along frozen...
- search_frozen_geodesic: Search for most interesting projection along frozen...
- search_geodesic: Search for most interesting projection along random...
- search_geodesic: Search for most interesting projection along random...
- sphere: Sphere a matrix (or data frame) by transforming variables...
- sphere: Sphere a matrix (or data frame) by transforming variables...
- step_angle: Step along an interpolated path by angle in radians.
- step_angle: Step along an interpolated path by angle in radians.
- step_fraction: Step along an interpolated path by fraction of path length.
- step_fraction: Step along an interpolated path by fraction of path length.
- subset-history_array: Subset history array...
- subset-history_array: Subset history array...
- thaw: Thaw a frozen matrix...
- thaw: Thaw a frozen matrix...
- to_stop: Prints information on how to stop the output...
- to_stop: Prints information on how to stop the output...