Class ErrorEstimatePruning

    • Field Detail

      • defaultConfidence

        public static double defaultConfidence
    • Constructor Detail

      • ErrorEstimatePruning

        public ErrorEstimatePruning()
    • Method Detail

      • errorRate

        public static double errorRate​(double f,
                                       double N,
                                       double z)
        Calculates the pessimistic error rate e using the formula (f + (z^2)/2N + z * sqrt(f/N - f^2/N + z^2/(4N^2)))/1 + z^2/N
        Parameters:
        f - observed error rate E/N, with N number of instances where E are errors
        N - number of instances
        z - confidence limit
        Returns:
        error
      • main

        public static void main​(String[] args)