Class EuclideanDistance

java.lang.Object
org.dulab.javanmf.measures.Measure
org.dulab.javanmf.measures.EuclideanDistance

public class EuclideanDistance
extends Measure
Calculates the distance between matrices X and WH using the euclidean distance || X − WH ||2
Author:
Du-Lab Team dulab.binf@gmail.com
  • Constructor Summary

    Constructors 
    Constructor Description
    EuclideanDistance()  
  • Method Summary

    Modifier and Type Method Description
    double get​(org.ejml.data.DMatrixRMaj x, org.ejml.data.DMatrixRMaj w, org.ejml.data.DMatrixRMaj h)
    Returns distance between matrices X and WH

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • get

      public double get​(@Nonnull org.ejml.data.DMatrixRMaj x, @Nonnull org.ejml.data.DMatrixRMaj w, @Nonnull org.ejml.data.DMatrixRMaj h)
      Description copied from class: Measure
      Returns distance between matrices X and WH
      Specified by:
      get in class Measure
      Parameters:
      x - matrix of shape [Npoints, Nvectors]
      w - matrix of shape [Npoints, Ncomponents]
      h - matrix of shape [Ncomponents, Nvectors]
      Returns:
      distance value