Class RABIDEstimator

    • Field Detail

    • Constructor Detail

      • RABIDEstimator

        public RABIDEstimator()
    • Method Detail

      • cos2

        private final double cos2​(double sideA2,
                                  double sideB2,
                                  double oppositeSide2)
        Squared cosine from squared triangle side lengths
        Parameters:
        sideA2 - squared first side
        sideB2 - squared second side
        oppositeSide2 - squared opposite side
        Returns:
        Squared cosine
      • computeABID

        protected double computeABID​(DistanceQuery<?> distq,
                                     KNNList knn,
                                     boolean bias)
        Estimate intrinsic dimensionality (both variants).
        Parameters:
        distq - Distance query
        knn - k nearest neighbors (usually +1, as the query point is included)
        bias - true to use ABID, false for RABID
        Returns:
        intrinsic dimensionality