Class BatchIndirectDistanceImpl

java.lang.Object
cz.fidentis.analyst.engines.face.batch.distance.impl.BatchIndirectDistanceImpl
All Implemented Interfaces:
BatchDistance, BatchIndirectDistance
Direct Known Subclasses:
BatchDistanceNearestNeighbors, BatchDistanceRayCasting

public abstract class BatchIndirectDistanceImpl extends Object implements BatchIndirectDistance
An object that computes distance-based similarity of the set of faces.
  • Constructor Details

    • BatchIndirectDistanceImpl

      public BatchIndirectDistanceImpl(HumanFace gaugeFace, int numFaces, BatchDistanceNearestNeighbors.DistCache<?> distCache)
      Constructor.
      Parameters:
      gaugeFace - A face serving as a "gauge". It is usually an average face of a set of faces.
      numFaces - The number of faces to be measured (excluding the gauge face)
      distCache - Distance cache
  • Method Details

    • addToMeasurement

      public abstract void addToMeasurement(HumanFace face)
      Description copied from interface: BatchIndirectDistance
      Adds the face to the N:N measurement.
      Specified by:
      addToMeasurement in interface BatchIndirectDistance
      Parameters:
      face - Face to be measured
    • measure

      public void measure()
      Description copied from interface: BatchIndirectDistance
      Computes pair-wise distance values.
      Specified by:
      measure in interface BatchIndirectDistance
    • getDistSimilarities

      public double[][] getDistSimilarities()
      Description copied from interface: BatchDistance
      Returns computed 2D matrix of distance similarities or null
      Specified by:
      getDistSimilarities in interface BatchDistance
      Returns:
      computed 2D matrix of distance similarities or null
    • getDistDeviations

      public double[][] getDistDeviations()
      Description copied from interface: BatchDistance
      Returns computed 2D matrix of sample standard deviations or null
      Specified by:
      getDistDeviations in interface BatchDistance
      Returns:
      computed 2D matrix of sample standard deviations or null
    • setDistSimilarity

      protected void setDistSimilarity(int i, int j, double val)
    • setDistDeviation

      protected void setDistDeviation(int i, int j, double val)
    • getDistCache

      protected BatchDistanceNearestNeighbors.DistCache<?> getDistCache()
    • getGaugeFace

      protected HumanFace getGaugeFace()