fix: broken links
This commit is contained in:
@@ -45,7 +45,7 @@ pub struct CoverTree<T, F: RealNumber, D: Distance<T, F>> {
|
|||||||
impl<T: Debug, F: RealNumber, D: Distance<T, F>> CoverTree<T, F, D> {
|
impl<T: Debug, F: RealNumber, D: Distance<T, F>> CoverTree<T, F, D> {
|
||||||
/// Construct a cover tree.
|
/// Construct a cover tree.
|
||||||
/// * `data` - vector of data points to search for.
|
/// * `data` - vector of data points to search for.
|
||||||
/// * `distance` - distance metric to use for searching. This function should extend [`Distance`](../algorithm/neighbour/index.html) interface.
|
/// * `distance` - distance metric to use for searching. This function should extend [`Distance`](../../../math/distance/index.html) interface.
|
||||||
pub fn new(mut data: Vec<T>, distance: D) -> CoverTree<T, F, D> {
|
pub fn new(mut data: Vec<T>, distance: D) -> CoverTree<T, F, D> {
|
||||||
let mut tree = CoverTree {
|
let mut tree = CoverTree {
|
||||||
base: F::two(),
|
base: F::two(),
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ pub struct LinearKNNSearch<T, F: RealNumber, D: Distance<T, F>> {
|
|||||||
impl<T, F: RealNumber, D: Distance<T, F>> LinearKNNSearch<T, F, D> {
|
impl<T, F: RealNumber, D: Distance<T, F>> LinearKNNSearch<T, F, D> {
|
||||||
/// Initializes algorithm.
|
/// Initializes algorithm.
|
||||||
/// * `data` - vector of data points to search for.
|
/// * `data` - vector of data points to search for.
|
||||||
/// * `distance` - distance metric to use for searching. This function should extend [`Distance`](../algorithm/neighbour/index.html) interface.
|
/// * `distance` - distance metric to use for searching. This function should extend [`Distance`](../../../math/distance/index.html) interface.
|
||||||
pub fn new(data: Vec<T>, distance: D) -> LinearKNNSearch<T, F, D> {
|
pub fn new(data: Vec<T>, distance: D) -> LinearKNNSearch<T, F, D> {
|
||||||
LinearKNNSearch {
|
LinearKNNSearch {
|
||||||
data: data,
|
data: data,
|
||||||
|
|||||||
Reference in New Issue
Block a user