Skip to main content

make_affinity_continuous

Function make_affinity_continuous 

Source
pub fn make_affinity_continuous<T>(
    data: &MatRef<'_, T>,
    distance_type: &str,
    k: usize,
    mu: T,
    normalise: bool,
) -> Mat<T>
Expand description

Generates an affinity matrix for SNF on continuous values

§Params

  • data - The underlying data. Assumes the orientation features x samples!
  • distance_type - One of the implemented distances.
  • k - Number of neighbours to consider
  • mu - Controls the Gaussian kernel strength
  • normalise - Shall the data be normalised prior to distance calculation

§Returns

The affinity matrix based on continuous values